I want the block in these coordinates to be replaced with another block

Started by Kokorakonn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want the block in these coordinates to be replaced with another block
Sun, 07/11/2021 - 22:23 (edited)

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
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/TnEcAmc …
Sun, 07/11/2021 - 22:18

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 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you use the search you…
Sun, 07/11/2021 - 22:20

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.

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, i found another way…
Sun, 07/11/2021 - 22:22

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.

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RightClickedOnStonedSword If…
Mon, 07/12/2021 - 02:35

RightClickedOnStonedSword

If [player_persistent_global_var AKA str] > 999

  • Set location to cobblestone
  • Give 1 Blooded Sword