Git Product home page Git Product 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.

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

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

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. 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
}

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).toJson(),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).toJson()], ['minecraft:sand','createsifter:string_mesh']).waterlogged()

Adding custom meshes (startup script)

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

KubeJS 6 integration (tested with 1902.6.0-build.121 version)

  • For minecraft 1.19.2
  • KubeJS 6 is in a very active development phase. Breaking changes may happen... be patient plz. I'll try to keep up with updates.
  • withChance method needs toJson to work properly.

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).toJson(),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).toJson()], ['minecraft:sand','createsifter:string_mesh']).waterlogged()

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

Adding custom meshes (startup script)

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

createsifter's People

Contributors

oierbravo 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.