Make a block spawn at an exact position

Started by Ro... on Mon, 11/23/2020 - 13:49

Topic category: Help with modding (Java Edition)

Last seen on 02:18, 12. Sep 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make a block spawn at an exact position
Mon, 11/23/2020 - 13:49

Hi, i want to make a weapon that spawn at an exact position, first, i made a block version of the weapon, when you right click on the weapon(block) , the block dissapear and the weapon appear in ur inventory, what i want is that he block spawn at x:20000 y:250 x:20000 (y is high but its because the block is affected by gravity). what i need to know, is how to make the block spawn when the world is first loaded, that mean, when minecraft generate the world for the time, the game generate the weapon(block) at x20000 y250 z20000. so when someone take the weapon, it will never spawn again.

Last seen on 14:43, 18. Dec 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use this: When Minecraft…
Mon, 11/23/2020 - 20:04

Use this:

  • When Minecraft loads a world:
  • set block at 20000 250 20000 to [WeaponBlock]

 

Last seen on 02:18, 12. Sep 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ik i will try that but i…
Thu, 11/26/2020 - 04:10

Ik i will try that but i think the weapon(block) will spawn every time Minecraft Load the World.