How do you make an entity that spawns with item rightclicked

Started by Dreek on Sun, 11/03/2019 - 14:41

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How do you make an entity that spawns with item rightclicked
Sun, 11/03/2019 - 14:41

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

Last seen on 21:05, 4. Apr 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 21:05, 4. Apr 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 21:05, 4. Apr 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

Help plz

Last seen on 03:19, 28. Jun 2020
Joined Jul 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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..