Started by
eDdniom
on
Topic category: Help with Minecraft modding (Java Edition)
I made a pet mob that has an inventory but in mcreator you can't set a condition for when the inventory could be open, is there a way to add conditions?
Topic category: Help with Minecraft modding (Java Edition)
I made a pet mob that has an inventory but in mcreator you can't set a condition for when the inventory could be open, is there a way to add conditions?
It's annoying trying to feed a pet with inventory, I tried making a procedure for it but the items in the inventory kept disappearing, instead I edited the code, where the override for the inventory is I wrote a line before the first 'if' :
if (sourceentity.isShiftKeyDown()) {
and a bracket at the close " } "
}
example:
It has worked so far, and he hasn't stolen anything. drops the inventory on death
Yeah It works great, but you can open the inventory even if the pet is not tamed, that's the problem
problem solved I think
yes, tried to do it myself but it did not work as intended, now it works great, thank you :)
hey i have the same problem how i can fix it with a procedure? oder a code if is a code please snt here or a screenshot of the procedure :)