Started by
Kokorakonn
on
Topic category: Help with Minecraft modding (Java Edition)
I want a block called stoned sword that spawns at 3000 70 3000 everytime the player joins the world to be replaced with cobblestone when right clicked, if a variable called strengh(str) is over 999 and give the player a sword tool called blooded sword. I tried removing and placing cobblestone in its place if str was over 999 and the block was right clicked, and I did the same with the replace procedure, but nothing has worked. str goes up by 1 each time entity kills entity. I don't want the block stoned sword to be replaced if right clicked with the player having less than 1000 str. Please help I am an idiot. Thanks in advance.
Edited by Kokorakonn on Sun, 07/11/2021 - 22:23
https://imgur.com/a/TnEcAmc
you should only add the or blocks and the items connected to them if you have many axe weapons you want to slow you down, and you can change those axes to your custom ones
if you use the search you can find one that is called "in off hand of entity/target" also add that in the "or" block so the player gets slowness whenever holding the item in main hand and off hand.
Thanks, i found another way around it , is there a chance you maybe know how to help me with the current problem? I was editing the forum while you posted this it seems lol sorry.
RightClickedOnStonedSword
If [player_persistent_global_var AKA str] > 999