Summon Mob On Specific Block Using Item

Started by desa192 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Dec 2018
Points:
696

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

Active 4 years ago
Joined Jan 2020
Points:
781

User statistics:

  • Modifications: 1
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 80
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.

Active 3 years ago
Joined Dec 2018
Points:
696

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 3 days ago
Joined Apr 2020
Points:
737

User statistics:

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

i cannot find that procedure

Active 1 year ago
Joined Feb 2020
Points:
643

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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