Giter VIP home page Giter VIP logo

createsifter's Introduction

Create Sifting

Release Downloads Version Issues Modrinth

A simple sifter for the amazing create mod. This mod it's meant to be used in modpacks. Only contains very basic ore recipes.

Heavily inspired on ex nihilo sieve.

23/09/2023 Update

  • Brass sifter
  • Advanced mesh, works only with the brass sifter
  • Crushed end stone. No recipes just an utility block for modpacks.
  • Dust. No recipes just an utility block for modpacks.
  • Nerfed all included recipes.
  • Changed sifting animation.

Brass Sifter

  • High redstone disables processing
  • Filters for allow or deny outputs.
  • 8x processing per cycle, configurable.
  • Bigger output capaticy, configurable.

Configs

  • (Common) Strees impact.
  • (Common) Minimum Speed.
  • (Common) Output inventory capacity
  • (Client) Render in progress block

Meshes

Works with the sifter or in hand (like create sandpaper)

  • Tiers: String, Andesite, Zinc, Brass
  • When in hand it sifts the block in the off-hand.

Sifter

Automated sifting. Based on the Millstone block works more or less in the same way. You can toss items on top or feed it with any item automated way (hoppers, funnels, chute...)

  • Right Click with a mesh to add it.
  • Recipes can have a mesh, but it's not required.

Waterlogged feature (optional)

  • Sifters can be waterlogged to get different output.
  • In hand meshes act as waterlogged when the player is in a LiquidBlock

Minimum Speed feature (optional)

  • Recipes can have custom speed requeriments

Sifting recipes

  • Put the mesh and the siftable block in the ingredients, in any order.
  • results is a list of items
  • Default processingTime is 200. You can override this value in the recipe.
  • Default waterlogged is false. You can override this value in the recipe.
  • Default minimumSpeed is 1.0 You can override this value in the recipe. In RPM as float. Maximum allowed value is 254.0 Example:
{
  "type": "createsifter:sifting",
  "ingredients": [
    {
      "item": "createsifter:andesite_mesh"
    },
    {
      "item": "minecraft:gravel"
    }
  ],
  "results": [
    {
      "item": "create:copper_nugget",
      "chance": 0.1
    },
    {
      "item": "create:zinc_nugget",
      "chance": 0.1
    },
    {
      "item": "minecraft:iron_nugget",
      "chance": 0.05
    },
    {
      "item": "minecraft:gold_nugget",
      "chance": 0.15
    },
    {
      "item": "minecraft:coal",
      "chance": 0.1
    },
    {
      "item": "minecraft:flint",
      "chance": 0.1
    }
  ],
  "processingTime": 500
}

Waterlogged Example:

{
  "type": "createsifter:sifting",
  "ingredients": [
    {
      "item": "createsifter:string_mesh"
    },
    {
      "item": "minecraft:dirt"
    }
  ],
  "results": [
    {
      "item": "minecraft:kelp",
      "chance": 0.1
    }
  ],
  "processingTime": 500,
  "waterlogged": true
}

Minimum Speed example

{
  "type": "createsifter:sifting",
  "ingredients": [
    {
      "item": "createsifter:andesite_mesh"
    },
    {
      "item": "minecraft:gravel"
    }
  ],
  "results": [
    {
      "item": "create:copper_nugget",
      "chance": 0.1
    },
    {
      "item": "create:zinc_nugget",
      "chance": 0.1
    },
    {
      "item": "minecraft:iron_nugget",
      "chance": 0.05
    },
    {
      "item": "minecraft:gold_nugget",
      "chance": 0.15
    },
    {
      "item": "minecraft:coal",
      "chance": 0.1
    },
    {
      "item": "minecraft:flint",
      "chance": 0.1
    }
  ],
  "processingTime": 500,
  "minimumSpeed": 64.0
}

Thanks to the Creators of Create.

Code inspiration from Create Craft & Additions and the Create mod itself.

KubeJS 5 integration:

  • For minecraft 1.18.2

Adding recipes (server script)

// event.recipes.createsifterSifting(output[], input[])
// Optional .waterlogged() .processingTime(int time)

// Basic Example
event.recipes.createsifterSifting([Item.of('minecraft:clay').withChance(0.5),Item.of('minecraft:redstone').withChance(0.1).toJson()], ['minecraft:sand','createsifter:string_mesh'])

//Waterlogged example
event.recipes.createsifterSifting([Item.of('minecraft:clay').withChance(0.5)], ['minecraft:sand','createsifter:string_mesh']).waterlogged()

Adding custom meshes (startup script)

event.create('example_mesh','createsifter:mesh').displayName('Example mesh')

KubeJS 6.1 integration (tested with 1902.6.1-build.300 version)

  • For minecraft 1.19.2
  • KubeJS 6.1 is in a very active development phase. Breaking changes may happen... be patient plz. I'll try to keep up with updates.

Adding recipes (server script)

// event.recipes.createsifterSifting(output[], input[])
// Optional .waterlogged() .processingTime(int time) .minimumSpeed(float speed)

// Basic Example
event.recipes.createsifterSifting([Item.of('minecraft:clay').withChance(0.5),Item.of('minecraft:redstone').withChance(0.1)], ['minecraft:sand','createsifter:string_mesh'])

// Waterlogged example
event.recipes.createsifterSifting([Item.of('minecraft:clay').withChance(0.5)], ['minecraft:sand','createsifter:string_mesh']).waterlogged()

// Minimum Speed Example
event.recipes.createsifterSifting([Item.of('minecraft:redstone_block').withChance(0.5),Item.of('minecraft:redstone').withChance(0.1)], ['minecraft:sand','createsifter:string_mesh']).minimumSpeed(64)

// Custom mesh example. Custom mesh ID comes from the Startup Script
event.recipes.createsifterSifting([Item.of('minecraft:glowstone_dust').withChance(0.5),Item.of('minecraft:redstone').withChance(0.1)], ['minecraft:sand','kubejs:example_mesh'])

Adding custom meshes (startup script)

//Mesh
event.create('example_mesh','createsifter:mesh').displayName('Example Mesh').parentModel("createsifter:block/meshes/mesh").texture("mesh","kubejs:item/example_mesh").texture("frame","kubejs:block/example_mesh_frame");

//Mesh
event.create('example_advanced_mesh','createsifter:advanced_mesh').displayName('Example Mesh').parentModel("createsifter:block/meshes/mesh").texture("mesh","kubejs:item/example_mesh").texture("frame","kubejs:block/example_mesh_frame");

CraftTweaker Integration (1.19.2)

import mods.createsifter.SiftingManager;


//addRecipe(String id, ProcessingOutput[] results, Ingredients[] input, int processingTime, boolean waterlogged, float minimumSpeed)
<recipetype:createsifter:sifting>.addRecipe("test_1",
    [<item:minecraft:glowstone_dust> % 10,
        <item:minecraft:gunpowder> % 50,
        <item:create:cinder_flour> % 75],
[<item:minecraft:netherrack>,<item:createsifter:andesite_mesh>]
, 300, false, 1);

createsifter's People

Contributors

oierbravo avatar evanhsieh0415 avatar albcer avatar asseygithub avatar pixl64 avatar prunoideae avatar saereth avatar freezingarts avatar u7f8au7fbd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.