How do you make an entity that spawns with item rightclicked

Started by Dreek on

Topic category: Help with modding (Java Edition)

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make an entity that spawns with item rightclicked

 Hi there, I hate block coding, and have no idea how to make an entity spawn on right click from item.

Last seen on 02:05, 30. May 2021
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure for when…
Sun, 11/03/2019 - 16:07

Make a procedure for when right click on block that looks like this

spawnentityrightclick

In the empty box put the item that you want to use, where it says entity go through the list and find your mob

Last seen on 02:05, 30. May 2021
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also feel free to check out…
Sun, 11/03/2019 - 16:11

Also feel free to check out my mod Horror Movie Monsters

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, I want it to spawn in…
Thu, 11/07/2019 - 01:18

No, I want it to spawn in the location of the player

Last seen on 02:05, 30. May 2021
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
then just look down and…
Thu, 11/07/2019 - 01:20

then just look down and spawn it at your feet... right click the block beneath the one you’re standing on.

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 For some reason it spawned 2
Thu, 11/07/2019 - 03:59

 For some reason it spawned 2

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help plz
Sat, 11/09/2019 - 04:15

Help plz

Last seen on 00:23, 17. Oct 2021
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With 1.9.1 of Mcreator we…
Sun, 11/10/2019 - 07:55

With 1.9.1 of Mcreator we can now execute command functions as the console seamlessly at locations and etc,
Simply do this,

 

Instead of the spawn block in the procedure the other guy suggested,

create that procedure and replace the spawn block with a command block that executes a command at an X, Y Z location, nothing more nothing less.

Then input this command into the command slot,

 

execute @p ~ ~ ~ /summon [input here] ~ ~ ~ 

 

replace the [input here]
with the entity ID name of the mob - entity..

you can find this id via going into a test build of your mod via the play button and
pressing T with commands turned on, on that world

Then type /summon (the id of your mod) a : right after it with no space and then press tab, keep pressing tab until you find an ID that looks like its of the mob you want to spawn,

then simply press the end key, hold shift and then keep tapping the left arrow key until you select the entire entity name, including your mod ID,

then press CTRL + C
and CTRL + V over the [input here] area.. it should look something like

execute @p ~ ~ ~ /summon mymod:omegazombie ~ ~ ~

 

you can find your mod's id via going into your workspace settings under the workspace tab btw.
 

 

that should work..

 

 

 

Last seen on 18:50, 15. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I ask where is that…
Fri, 10/01/2021 - 22:27

Can I ask where is that block "item in entity's main hand"?

Last seen on 11:55, 15. Feb 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea, i want to know too  
Fri, 11/26/2021 - 05:44

Yea, i want to know too

 

Last seen on 20:17, 24. Aug 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to make it work on…
Sat, 08/13/2022 - 15:58

I managed to make it work on 1.18.2 with this procedure, wich i activate with the :"when right clicked on block" trigger:

Spawn at x: "x"  y: "y+1"  z: "z" entity:"[entity id here]"  

 

(excuse me but my internet is currently so bad i cant send images)