Started by
FunnyUsername
on
Topic category: Help with Minecraft modding (Java Edition)
Is there any sort of way to add the freezing effect to players and make them slowly freeze without wearing leather/customs armors? I want to make the player freeze in the Colder biomes along with adding some fur armors so it would be really nice if I could do it as the freezing effect instead of slowness and mining fatigue potion effects. Alternatively if I cant use the freezing effect, how would I be able to make it as close as possible to replicating the look?
Try doing
Global trigger On player tick update
if not target entity wearing ( any leather armour ) and get biome temperature at x y z >= certain number
(Player lifetime variable) + 1
else if get biome temperature at x y z < certain number and (Player lifetime variable) > 0
(Player lifetime variable) - 1
if (Player lifetime variable) >= certain number
Damage player
Like this
I cant seem to get it to work and the image isnt loading for some reason. Is there a way to use imgur or some other site to send the image?
are you.. using the most recent mcreator version? It has the frostbite effect added to it. If you dont, there is still a plugin on the mcreator website that adds it to older versions of mcreator. Hope this helps!
Im using the 2022.3 version which I just updated to like a week ago? where would I find it under?
also it might just be worded differently or something. Minecraft itself calls it freezing but ive heard people call it frostbite or hypothermia which idk if that helps but i wanted to throw that out there
(sorry if I'm really dense about this stuff I just recently picked MCreator back up)
still messing with it and nothing
in the next version minecraft 1.19 freezing will be added.
when this is done. in any trigger. on tick triggers better
IF NOT get armor item in slot 0 = X Or get armor item in slot 1 = X Or (2 OR 3 0 is boots. goes to 3 at helmet)
if . set Freezing of event/target entity (get freezing of event/target entity) + 1
if you want to do this right now you will need how to use data command. and edit manually the tagbig (i think) of freezing for the user.
Yeah so I found under the procedures section:
"Get number of ticks __ has been frozen for"
and
"Set number of ticks __ has been frozen for to __"
This is on the latest version. The bottom option does give the affect to your opponent. But only for a split second, no matter the tick input. Is there any other way to apply the freeze affect to something?
All you have to do is just check for the items in each armor slot using the red blocks to check for GET ARMOR from SLOT (number) 0, and check if it is the item /armor piece you want. (0 number = boots, 1 = legs, 2 = chestplate, 3 = helmet.) If the player does not have these armors in their spots, then you will use the Set amount of ticks entity is freezed for. You can set the ticks to as long as you wish.
You need to be in 2022.3+ for this to be possible. (be in 1.19 versions or higher.)