Started by
parrotgab
on
Topic category: Help with Minecraft modding (Java Edition)
So im making a end extension mod and im adding a end axolotl mob but i dont know how to make it bucketable
all i know is that i need the item texture for it and probably coding (i cant code myself)
anyone can help me? I would appreciate
-ParrotGab
Hi
I'm not sure that is the greatest solution but you can do that :
First, create a new item "bucket with [entity]"
Add a procedure to your new bucket in "when player click on a block" :
remove a "bucket with [entity]" from the player inventory
Add a "empty bucket" to the player inventory
Place a [entity] to x,y,z
Then, say in a procedure :
(trigger)When click on [entity]
if player hold a bucket in a hand
remove "empty bucket" from player inventory
make [entity] disappear.
Add a "bucket with [entity]" to the player inventory
Warning : you can't keep the life of your entity with this tips.
ow !
little error :
the second procedure had to be add to the [entity] procedure in "when a player click on this entity", not in a external procedure because the trigger "when click on [entity]" doesn't exist : )
Make Bucket item with entity inside, then do procedure: when right clicked on entity, use the AND procedure, and do has bucket in hand procedure, then do remove bucket from inventory, then add item!
With bucket item do when right clicked on ground procedure, then use set liquid at X Y Z {type:water} then do command /summon [yourentity]