Dimensions and guns

Started by Kenny_Rein on

Topic category: Help with modding (Java Edition)

Last seen on 16:04, 13. Sep 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dimensions and guns

So, i have custom dimension and want to make a procedure, that will banish you to overworld and cast a potion effect on player instead of diying in this dimension. (But when you die in overworld, you will just die) But i can't find dimension-checking and effect-casting procedure block. Can you give me a hint, how to check current dimension in if block and cast effect with procedure. thanks. 

 

also, i want to make guns with infinite ammo but not infinite magazine. please, say me a procedures, that can make it, thanks

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe this can work for the…
Mon, 09/13/2021 - 16:45

Maybe this can work for the Dimension thing,

TRIGGER     Entity Dies

If            Is Event/Target Entity type Player

    AND  ID of Dimension Event/Target Entity is in = YOUR DIMENSION

Do   switch dimension of Event/Target Entity to YOUR DIMENSION

        Add Potion with level LEVEL for TICKS ticks to Event/Target Entity type: YOUR EFFECT

haven't tested but what it does it checks if player died in a Dimension, it adds an effect. Ofcourse you should not use this, just tweak it a little for you