Topic category: Collaborations and mod teams
My mod has a feature that lets you drop coins. When you right click on the coin block, it is supposed to give you coins in accordance to the value in the nbt tag in it called coinsHeld. Whenever you drop coins, it is supposed to place a coin block, and set the nbt to the given value. However, it never sets. I literally did this:
Set NBT number tag "coinsHeld" of block at x: x y: y z: z to number from text Get text inside textfield dropCoins if it has title entity
Send message create text with "-", create text with Get number tag "coinsHeld" of block x: x y: y z: z if it has title entity, " coins" to Event/target entity Show in action bar: true
(with the blocks, not custom code). I'm sure that the value of
number from text Get text inside textfield dropCoins
is correct. However, whenever I test, it always says --1.0 coins in my action bar when I drop the coins. Does anyone know what's going on and what I should do to fix it? Thanks!
Turns out to be a client-server problem. MCreator, PLEASE add a way to send info from the client to the server!