Git Product home page Git Product logo

extended-cogwheels's Introduction

Extended Cogwheels (Multiloader)

Supported Versions CF CF License Discord

[Forge & Fabric, 1.18.2, 1.19.2 & 1.20.1] Adding more cogwheels to the create mod aswell as providing progression systems to modpack developers through configurations



Datapack Integration

(In Beta Testing) you are able to add new cogwheel materials through datapacks. You can find a guide on how to set up a datapack on the Minecraft Wiki. Once you have that set up under your namespace directory create a new directory called cogwheels which you can then add new materials to following this schema:

{
  // The ingredients are what the player can use on a cogwheel
  // to get your new material. You can use both items and tags
  // and specify as many as you like.
  "items": [
    {
      "tag": "some_mod:some_tag"
    },
    {
      "item": "some_mod:some_item"
    }
  ],
  // Here you can specify overwrites to the block models textures
  // put the resource location of one of your models current
  // textures under old and specify the new texture's location in
  // replacement. You can set as many of these as you need.
  "textures": [
    {
      "old": "create:small_cogwheel",
      "replacement": "some_mod:new_texture"
    }
  ],
  // Unless you need to replace the model, for example for brass
  // and copper cogwheels you do not need to specify the models
  // and they will default to the "vanilla" cogwheel models
  "small_model": "create:cogwheel_shaftless",
  "large_model": "create:large_cogwheel_shaftless",
  // These limits will only be applied if limits are enabled in
  // config. If you do not specify these fields they will default
  "speed_limit": 128, // Defaults to the speed limit set in config 
  "stress_limit": 2048 // Defaults to 2^31 (no limit)
}

And that's it you can now use your new cogwheels. If you want to add custom assets you can include them in KubeJS or a Resource Pack.


KubeJS Integration (Deprecated)

KubeJS support has been deprecated please use datapacks to add new cogwheels

As of version 2.1 and above extended cogwheels has allows for you to create your own custom cogwheels easily with KubeJS (when both mods are present)

Cogwheels can now be created like any other block just specify the type and properties give it a texture and try it out in game

Example Adding A Small Cogwheel (Relevant texture files are placed in /assets/kubjs/textures/block/example_cogwheel.png)

// startup_scripts/demo.js
onEvent('block.registry', event => {
	event.create('example_cogwheel', 'cogwheel')
	    .material('wood')
	    .displayName('Example Cogwheel');
})

Example Adding A Large Cogwheel

// startup_scripts/demo.js
onEvent('block.registry', event => {
    event.create('large_example_cogwheel', 'large_cogwheel')
        .material('wood')
        .displayName('Example Cogwheel');
})

All Valid Variations Are cogwheel, large_cogwheel, half_shaft_cogwheel, large_half_shaft_cogwheel, shaftless_cogwheel, large_shaftless_cogwheel

Existing builder methods for blocks are all supported for cogwheels. You can find some documentation for that here - https://wiki.latvian.dev/books/kubejs-legacy/page/custom-blocks

extended-cogwheels's People

Contributors

a0a7 avatar asseygithub avatar evanhsieh0415 avatar junnaturefox avatar laurensthedev avatar lysolaka avatar rabbitminers avatar superruper1209 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.