player
if player:getExperienceProgress() > .5 then
log("You're over halfway to the next level")
end
if player:getSaturation() == 20 then
log("Your saturation is 20")
end
if player:getFood() == 0 then
log("You're starving")
end
if player:getExperienceLevel() == 30 then
log("You have 30 levels")
end
if player:isFlying() then
log("You're flying")
end
if player:getModelType() == "DEFAULT" then
log("You're Steve")
end
if player:isSkinLayerVisible("HAT") then
log("Your hat's on")
end
if player:getGamemode() and player:getGamemode() == "SURVIVAL" then
log("You're in survival mode")
end
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
if player:getActiveItem().id == "minecraft:bow" then
log("You're drawing back a bow")
end
Inherited from LivingEntityAPI
if player:getHealth() == 20 then
log("You're at full health")
end
Inherited from LivingEntityAPI
if player:getHeldItem(false).id == "minecraft:diamond_sword" then
log("You're holding a diamond sword")
end
Inherited from LivingEntityAPI
if player:isLeftHanded() then
log("You're left handed")
end
Inherited from LivingEntityAPI
if player:getActiveHand() == "MAIN_HAND" then
log("You're using your main hand")
end
Inherited from LivingEntityAPI
if player:getArmor() == 20 then
log("You have max armor points")
end
Inherited from LivingEntityAPI
if player:getArrowCount() > 0 then
log("You've been shot")
end
Inherited from LivingEntityAPI
if player:isClimbing() then
log("You're climbing")
end
Inherited from LivingEntityAPI
if player:isUsingItem() then
log("You're using an item")
end
Inherited from LivingEntityAPI
if player:getDeathTime() > 0 then
log("You're dead")
end
Inherited from LivingEntityAPI
if player:getStingerCount() > 0 then
log("You've been stung")
end
Inherited from LivingEntityAPI
if player:getMaxHealth() == 20 then
log("You're healthy")
end
Inherited from LivingEntityAPI
for i, effect in ipairs(player:getStatusEffects()) do
if effect.name == "effect.minecraft.night_vision" then
log("Night vision")
end
end
Inherited from LivingEntityAPI
if player:getName() == "JimmyHelp" then
log("You're... me?")
end
Inherited from LivingEntityAPI
if player:getType() == "minecraft:player" then
log("You're a player")
end
Inherited from LivingEntityAPI
if player:isLoaded() then
log("You're being loaded")
end
Inherited from LivingEntityAPI
if player:getItem(5).id == "minecraft:elytra" then
log("You're wearing an elytra")
end
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
if player:getFrozenTicks() == 140 then
log("You're being frozen solid")
end
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
if player:getMaxAir() == 300 then
log("You've got healthy lungs")
end
Inherited from LivingEntityAPI
if player:isHamburger() then
log("You're hamburger")
end
Inherited from LivingEntityAPI
if player:getDimensionName() == "minecraft:overworld" then
log("You're in the Overworld")
end
Inherited from LivingEntityAPI
if player:getAir() < 0 then
log("You're drowning")
end
Inherited from LivingEntityAPI
if player:getVelocity():length() > 0 then
log("You're moving in any direction")
end
Inherited from LivingEntityAPI
if player:getUUID() == "5003b2ce-7a8d-4c56-8b91-ec705985fe08" then
log("You're... me?")
end
Inherited from LivingEntityAPI
if player:hasAvatar() then
log("You have an avatar")
end
Inherited from LivingEntityAPI
if player:isGlowing() then
log("You're glowing")
end
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
if player:getVehicle() and player:getVehicle():getType() == "minecraft:pig" then
log("You're riding a pig")
end
Inherited from LivingEntityAPI
if player:isOnGround() then
log("You're on the ground")
end
Inherited from LivingEntityAPI
if player:isInvisible() then
log("You're invisible")
end
Inherited from LivingEntityAPI
if player:getPose() == "CROUCHING" then
log("You're crouching")
end
Inherited from LivingEntityAPI
if player:isSprinting() then
log("You're sprinting")
end
Inherited from LivingEntityAPI
if player:isSilent() then
log("You're silent")
end
Inherited from LivingEntityAPI
if player:isSneaking() then
log("You're sneaking")
end
Inherited from LivingEntityAPI
if player:isInLava() then
log("You're in lava")
end
Inherited from LivingEntityAPI
if player:isInWater() then
log("You're in water")
end
Inherited from LivingEntityAPI
if player:isUnderwater() then
log("You're underwater")
end
Inherited from LivingEntityAPI
if player:isInRain() then
log("You're in rain")
end
Inherited from LivingEntityAPI
if player:isWet() then
log("You're touching water")
end
Inherited from LivingEntityAPI
Inherited from LivingEntityAPI
if player:getTargetedBlock(true,4.5).id == "minecraft:grass_block" then
log("You're looking at grass")
end
player:getTargetedBlock()
Method Property | Fluent Description | Representation |
---|---|---|
Return Value | a BlockState |
player:getTargetedBlock(ignoreLiquids)
Method Property | Fluent Description | Representation |
---|---|---|
ignoreLiquids accepts | a Boolean | |
Return Value | a BlockState |
player:getTargetedBlock(ignoreLiquids, distance)
Method Property | Fluent Description | Representation |
---|---|---|
ignoreLiquids accepts | a Boolean | |
distance accepts | a Number | |
Return Value | a BlockState |
Inherited from LivingEntityAPI
if player:isOnFire() then
log("You're on fire")
end