Started by
Rocketman5234
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm making a mod and I need a block that connects similar to redstone and string, does anyone know how to do this?
Topic category: Help with Minecraft modding (Java Edition)
So I'm making a mod and I need a block that connects similar to redstone and string, does anyone know how to do this?
You would need multiple blocks acting like multiple states. You would also need to use the trigger "Update tick". This means every block tick it would run whatever procedure you want.
for example: To make Redstone you would need to know 1 thing, power level. The power level can be established in the block itself. having 16 blocks, ranging from no power to full power. You would need to check every Redstone variant around you, and then use that to figure out what power level you need (MATH).
For something like string, it's very similar to Redstone with a couple of differences. Instead of having 16 blocks, there is only 3. 1 for not connected to tripwire, 1 that's connected but not activated, and the last 1 is both connected and activated. You're going to need to use procedures to check if the string next to it is connected to or is itself a tripwire. If those requirements are met, turn itself into a connected string variant. Finally, if a player is ever touching a connected string variant, activate.
You can change or modify any of these, but you need to know that the connections are all created by you, using procedures. There isn't a checkbox in the block tab that says "Connect".