Started by
Chasebear777
on
Topic category: Help with Minecraft modding (Java Edition)
i made the frogs like the ones in minecraft 1.19 and everything about them is finished but them laying eggs, i made it so it sets a nbt value then when it is in water it spawns the frog eggs and sets the nbt to false, but the blocks that spawn are like ghost blocks, they dont tick so they arent hatching and when you right click them they vanish, it was fine a few months ago but all of a sudden it just isn't working, does anyone have any solutions to fix it? this is the code for it : https://imgur.com/a/lQGVm5p
I don't know exactly but it could be something to do with this warning..
Well it works to place the block the block just doesn't tick and when you right click it vanishes
And if it doesn't tick that means the block won't hatch into any tadpoles
Yeah that's what a ghost block is, it's not actually there, if you relog it'll also vanish. That is caused by a desync between the client and server.
I guess i'll just try to make it just place the block if theres water but the thing is if someone breeds the mob when its not in water then no frog egg will appear thats why i did the nbt so it would check if it was true then place it if the entity is in water
Can you try surrounding the place egg at x: ... block with this?
Ok ill try it now to see if it works
Ok now they aren't even placing anything and its not making a sound of the egg laying even though thats part is outside of that block
Is it still setting the isPregnant to false?
I'm not sure im gonna do a print block to see if it is activating that part of the procedure
Ok that time it did the print and the sound but it didn't place the frog egg
Does it not place it at all? What if you relog?
I left the world and went back in but it's still not there
Ok can you try using this block instead?