Advanced summoning system

Started by jeux2119 on

Topic category: Advanced modding

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Advanced summoning system

I dont have anything so far i tried but it all seems to fail i have my ai and tool done 

but anyways im trying to make a gui pop out when right clicked and you can use the currency to summon the selected minion

for example there would be a normal necromancer so necro would cost 5 norm would cost 1
you use currency and summon the mob on me

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would need to set up the…
Thu, 08/03/2023 - 22:40

You would need to set up the GUI and the currency. Then on the tool set up a "when item right clicked" and use the procedure "open screen for {entity} and pass location ... GUI". In the GUI you would need to create your buttons and way to insert the currency. Then on the button set up a procedure like "if get currency = 5 summon mob" or whatever you need.

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh sorry i mentioned that…
Sat, 08/05/2023 - 00:57

oh sorry i mentioned that wrong i meant whenever you kill a entity it gives currency

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For that you would need to…
Sat, 08/05/2023 - 01:42

For that you would need to set up a global variable/NBT to store he currency. Then crate your trigger (player kills entity) and do (set global variable to (get global variable + [currency amount]))

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im not sure there is a…
Sat, 08/05/2023 - 01:48

im not sure there is a player kills entity trigger

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use "entity dies" and then…
Sat, 08/05/2023 - 01:50

Use "entity dies" and then set an if statement for if source entity is type player/server player

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im sorry i am not so good at…
Sat, 08/05/2023 - 01:50

im sorry i am not so good at variables and nbt too but im trying to make any ai when they die to my weapon they will drop a brain

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh wow you replied fast
Sat, 08/05/2023 - 01:51

oh wow you replied fast

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im trying it out let me see…
Sat, 08/05/2023 - 01:54

im trying it out let me see if it works

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it works thanks
Sat, 08/05/2023 - 01:57

it works thanks

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No worries. For the currency…
Sat, 08/05/2023 - 01:59

No worries. For the currency, use a global variable if you are storing the currency to the player. use an NBT if you are storing the currency to an item. 

Global variables are located on the main page, under the big plus button there are tabs. One is for Global Variables.

NBT data for items is located under the "items" tab in a procedure..

 

For dropping the brains I would recommend doing under the "entity dies" trigger create an if statement - "if main hand of source entity = [your item/weapon]" "do drop gem [your item/brain]

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wow thanks
Sat, 08/05/2023 - 02:06

wow thanks

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i didnt think to do that
Sat, 08/05/2023 - 02:08

i didnt think to do that

Last seen on 19:38, 22. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hey by any chance do you…
Sat, 08/05/2023 - 02:17

hey by any chance do you know how to select if  the player has 2 brains in there inventory
as the summon system is from a gui and i want better zombies to cost more so do you know

 

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes you can do an "if entity…
Sat, 08/05/2023 - 02:29

Yes you can do an "if entity has [brain] in inventory" "do for each item in inventory as item iterator" "do if item iterator = [brain] and get item size of item iterator is greater than it equal to [your number]" "do summon zombie"