Started by
_Syntax_3rror_
on
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to make a procedure so when a player enters a certain dimension their mode is changed to hardcore or they have limited lives?
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to make a procedure so when a player enters a certain dimension their mode is changed to hardcore or they have limited lives?
Can someone please answer?
Use a integer variable. Make sure to make it player-persistent.
First procedure: https://imgur.com/3Kg7XgO
Change the "end" procedure block to your custom dimension, it is found in minecraft components tab, just look for the color. Replace the variable with your variable.
Second procedure: https://imgur.com/laVZb6g
"Provided dimension type" block is also found in minecraft components tab. And "Cancel event that triggered global trigger" is in advanced procedure blocks tab.
I can't find the get global or set global blocks
In custom variables tab
sorry, it doesn't say set global or anything only "get" [blank]
sorry it's probably me being dumb but which do i select?
https://gyazo.com/b1f2662b743002b93224b7addacf2c00
You're doing it right. But you have to make a global variable first. Go back to the main mcreator screen(with all your elements), go to variables tab on the left and make a variable. Make sure to make this one an integer and make it player-persistent.
Like this?
https://gyazo.com/27552c638f1d2122899b78ff1d00f077
That is correct