Dimensions and guns

Started by Kenny_Rein on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Sep 2021
Points:
530

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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

Active 1 year ago
Joined Oct 2020
Points:
1617

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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