Dimensions and guns

Started by Kenny_Rein on

Topic category: Help with Minecraft modding (Java Edition)

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

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