Started by
HollowVoidGojo
on
Topic category: Help with Minecraft modding (Java Edition)
I am making an enchant where after 2 kills, you get an essence, how can I make it so that the enchant gives an item for every 2 kills that the player has?
Create a PLAYER_PERSISTENT global number variable to track kills.
On entity killed trigger,:
If player killed entity and has item with enchantment, increment counter.
If counter => 2, drop item, reset counter to 0
How do I make a Player_Persistent global number?
Go to Variables Tab.
How do I make it so that it has to be a player to be able to get the item not just a entity?
If you could send me a ScreenShot of what the block code should look like, that would be wonderful
Here, can you use this. Things in red are important!
Thats great, is it possible to make it so that this only happens when the enchantment is on the item?
or the enchantment is being used/the enchantment is on the item that is used to kill the player