improvements to the hot or not levitation
This commit is contained in:
parent
068466301b
commit
ebb7fecf20
2 changed files with 9 additions and 6 deletions
|
|
@ -3,11 +3,12 @@
|
|||
PlayerEvents.tick(event => {
|
||||
|
||||
// make levitation last shorter, so shulkers aren't so deadly on the moon
|
||||
|
||||
if (event.player.hasEffect('minecraft:levitation')) {
|
||||
event.server.scheduleInTicks(0, () => { })
|
||||
event.server.scheduleInTicks(40, () => {
|
||||
event.player.removeEffect('minecraft:levitation')
|
||||
})
|
||||
const { player } = event;
|
||||
if (player.age % 20 === 0) {
|
||||
if (event.player.hasEffect('minecraft:levitation')) {
|
||||
if (event.player.getEffect('minecraft:levitation').getDuration() > 60) {
|
||||
event.player.potionEffects.add('minecraft:levitation', 60, 0, true, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ const registerHotOrNotItemTags = (event) => {
|
|||
|
||||
event.add('tfg:prevents_gas_floating', 'create:copper_diving_boots')
|
||||
event.add('tfg:prevents_gas_floating', 'create:netherite_diving_boots')
|
||||
event.add('tfg:prevents_gas_floating', 'ad_astra:space_boots')
|
||||
event.add('tfg:prevents_gas_floating', 'ad_astra:netherite_space_boots')
|
||||
}
|
||||
|
||||
const registerHotOrNotFluidTags = (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue