im NOT retexturing the vertical one too, and it can also could work like a nerf
:clueless:
:3dsmile:
🤑 (chill ill nerf the stress values also)
2024-07-08_01.01.04.png
im NOT retexturing the vertical one too, and it can also could work like a nerf
:clueless:
:3dsmile:
🤑 (chill ill nerf the stress values also)
2024-07-08_01.01.04.png
Because while you can edit the blockstate so that the vertical model is just the sideways model, without changing the mods code theres no way to change where the power would come from/remove the vertical placement
Though I’ve actually never set up a block with a create mod shadt output/input, so maybe that is actually editable with a datapack? (Though I doubt it)
no it has to be done in the mod directly, hence why i said that
probably in the getBlockStateForPlacement you tell create what side your power is coming from
IIRC its a method from create that you can use to tell whether a side can accept power, and in which direction
the getBlockStateForPlacement is as the name says it the function that gives the state when placed (usually you would do something like change rotation depending on player rotation or placement position)
Yeah, but surely you would have to change which side is accepting power when you change the placement state?
yes, but not here
This is handled in the other function(s)
Oh, so you would instead do something like getblockstate and then use that to tell create which side
yes, and that function is called anytime create needs to update the block/network
Ah, yeah that makes sense. So I guess what you would need to do to remove vertical is to change the blockstates so that no matter how you place its always horizontal, and then optionally you could remove the vertical blockstate from the create function (though technically if that state never gets placed it doesnt matter)
technically, but that would not prevent things like rotating the block using a wrench or other things from making it vertical, in order to completely disable this you would need to change the blockstate property from a 6 directional to a 4 horizontal directional one (idk their actual names) and make sure to replace everything that reference it in order to prevent crashes when some other thing try to place it vertically (in particular, there is a rotate function that is used by wrench and other things and that can place it vertically if not handled correctly)
True, I guess I was thinking you could only get the vertical state with a debug stick but a wrench could definitly cause some problems
This conversation is on Discord · Reply there