#Fabric 1.21.4 block entities

1 messages · Page 1 of 1 (latest)

dense bison
#

Hey, guys

does anyone have a tutorial or something like that on creating Entity Blocks on fabric 1.21.4, because I ran into a problem, I need custom blocks in the mod, like furnaces, storages and all sorts of similar things on mechanics, but there are no tutorials on YouTube, no guides on the Internet, no neural networks know how to make them, so plus on top, when I looked at other people's mods with such mechanics, there is some kind of chaos and it is generally unclear what and where is happening. So, can someone either explain or show a guide on this whole topic

dense bison
#

Fabric 1.21.4 block entities

shadow spruce
#

what exaclty is the problem? a BE is just a class that held data for a block in the world (that can be synced from the logical server side to the client one) and that can be ticked by the game if requested. That's what the BlockEntity class gives you. From there on is all about your own code design and implementation

dense bison
shadow spruce
#

Start by reading about them on the fabric wiki and on the #docs website

#

Then do some little experiments with them

#

Don't try to do all you want to do at once

dense bison
shadow spruce
#

you will not find a tutorial for everything. you should piece things together yourself.

#

you can read the decompiled source code of MC in your IDE (the docs explain how)

dense bison
shadow spruce
#

BE didn't change in 1.21.2+ so any 1.21 tutorial is good

#

by memory, they didn't change in 1.21 too so 1.20 is good too

#

and the doc website is for 1.21.4 btw

dense bison
dense bison