1

Is there any way to decrease the amount of time a player can stay underwater?

User3166401G's Avatar User3166401G7/29/20 11:33 pm
1 emeralds 145 7
10/5/2020 2:45 pm
ShelLuser's Avatar ShelLuser
I'm making a map and am trying to figure out how to make it so the drowning process is a lot faster than normal. I want it to be visible how long the player has but its difficult to attempt when I don't even know what I'm doing to begin with. Is this possible to do?
Posted by User3166401G's Avatar
User3166401G
Level 1 : New Miner
0

Create an account or sign in to comment.

7

1
10/05/2020 2:45 pmhistory
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
I know this is a late response but.. if you're wondering about player NBT data then always remember the /data command. So: /data get entity @p. This will show you the Air NBT property which has a default value of 300s.

Unfortunately you can use /data to affect blocks and entities but you cannot do this for players, you'd need specific commands to do that. Comparable to /data get @p Inventory. I can check a players inventory this way, but I cannot modify it; I'd need the /replaceitem command for that. Same applies to the Air property. But unfortunately there is no command for this..
1
10/05/2020 2:40 pm
Level 14 : Journeyman Warrior
CrimsonFang
CrimsonFang's Avatar
Um no i think maybe you need a mod? i know there is a mod that you can make you not die at all from water though
1
09/27/2020 12:09 am
Level 21 : Expert Fish
tealpenguin
tealpenguin's Avatar
The only way I could think of is to lower they’re health via /effect name instant_damage
2
07/30/2020 1:28 pm
Level 37 : Artisan Blacksmith
set_135
set_135's Avatar
I don't know exactly how to structure the command but minecraft should help auto compleat the comand

/attribute @a air (I think that 20 is normal)

This command reduces or increases the bubbles you have when you go swimming but the /attribute command is a 1.16 command.

I hope this helped
1
10/05/2020 2:36 pm
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
air isn't an attribute.
1
07/30/2020 4:27 am
Level 47 : Master Nerd
LoadedInReverse
LoadedInReverse's Avatar
If it can accept data packs I might be able to look into making one like that, wanted to make one for more time underwater anyway so might as well make the reverse too haha, if so lemme know what version you’re on I like a challenge
1
07/29/2020 11:58 pm
Level 26 : Expert Engineer
MotherOfUtensils
MotherOfUtensils's Avatar
This may be possible with the help of a plugin that edits these values, but I don't think it's able to be done completely in vanilla. I would see if you can find someone who's able to write a plugin like this (if it's possible). It might also be able to be done with a datapack, but I'm unfamiliar with those.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome