Summon Mob On Specific Block Using Item

Started by desa192 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Summon Mob On Specific Block Using Item

I have an item that needs to be crafted. When you right click with this item, it spawns a boss mob.

Currently, you can spawn unlimited mobs by right clicking, how do i make it so you can only spawn 1 boss and the item disappears or is used?

Also I want the item to only summon the boss when you right click on a special block i made, how do i do this?

These are the last things I need before releasing my mod, please help. Thank you all

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On TOOL: when right clicked…
Sat, 03/28/2020 - 20:36

On TOOL:

when right clicked on block (hand loc)

Call procedure (boss procedure)

Boss procedure:

If get block at x,y,z is (special block)

Spawn at x,y,x boss

Remove 1 (tool) from provided players inventory

 

That means block only activates when you use the tool on it, not with anything else and if you do, it removes the tool.

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much for the…
Tue, 03/31/2020 - 16:29

Thank you so much for the help it fixed my problem! The only problem now is the mob not dropping the default drop.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i cannot find that procedure
Fri, 05/01/2020 - 16:39

i cannot find that procedure

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a procedure that…
Thu, 06/04/2020 - 21:59

make a procedure that contains these

 remove item procedure block to remove the item from the players inventory 

 

then add spawn entity at x y z block to spawn the entity

 

then set the when clicked option in the item config menu and set it to that procedure

Hopefully I didn't word it to confusingly