Entity isnt buffing me (maybe buffing itself?)

Started by GenoFromEarthbound on

Topic category: Help with MCreator software

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity isnt buffing me (maybe buffing itself?)

I'm trying to make it so when the entity is tamed, every now and then they will buff me (or just everyone around me) with Luck II but it seems like theyre buffing themselves? What do I do  

the blocks:
https://imgur.com/C40Yt8s

You can use "effect" command…
Tue, 06/29/2021 - 22:24

You can use "effect" command for that as well. I don't really know how to use that procedure block, so I can't help you here, but commands work greatly too x)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
whats effect command? how do…
Wed, 06/30/2021 - 00:20

whats effect command? how do i get it

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1st: if you want it to be…
Wed, 06/30/2021 - 01:19

1st: if you want it to be fired by an already tamed entity, don't use "entity is tamed" trigger; it will only fire  whenever an entity has been tamed by a player, NOT detecting if it already has an owner and is being tick-updated

2nd: you may want to use "on loaded entity tick update" event trigger instead if you want it to apply to any entities tamed. if you only want it to be executed for one custom mob of yours, simply put it on the "on entity tick update" trigger of your desired mob/s

3rd: don't use "wait [number] ticks" as it may cause bugs when used along a tick update; maybe make an NBT timer and use it instead (watch YT tutorials about how to make timers in case you don't know how, there should be a couple)

4th: instead of "add potion with level [number] for [number] ticks to get nearest entity", use the "for each entity at x y z in square cube with size 4 (or any number)" procedure, a.k.a. entity iterator. then, put "if NOT entity iterator = event/target entity do add potion with level [number] for [number] ticks to entity iterator"

 

Answering for my part, you…
Fri, 07/02/2021 - 15:39

Answering for my part, you have procedure block like "execute command", and you can use command for adding specific effect to entities in specific radius. For example:

effect give @e[distance=..2] minecraft:luck 5 2

...should give all entities in radius of 2 blocks Luck II effect for 5 seconds. If you want to change some elements, just modify numbers (2 is effect level, can be omitted if you want level 1, which is default within this command).
And if you work on 1.12.2 version, the syntax is a bit different, but I highly doubt that you make mod for that version, haha.

Though it's a bit of a workaround, so if you prefer to use more dedicated tools for that, you should stick to Sajevius guide :D

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you have to change…
Fri, 07/02/2021 - 19:47

I think you have to change the entity type of the following block:

"Get nearest entity at XYZ in cube² with size 4 of type.... CUSTOM:Ruby",
because it'll only work for so called "Ruby" entities in square cube with size 4.

So just change CUSTOM:Ruby to EntityPlayer & EntityPlayerMP.