This query tracks when certain entities are 'eating'. Return 1.0 or 0.0 based on whether the entity is enchanted.Ĭurrently, can be only used in materials. query.is_enchanted #įormatted like: is_enchanted = query.is_enchanted. Note that the hotbar is in a different slot from the main inventory slot so you will have to check that separately. This simply loops through all 27 slots of the inventory and returns 1.0 if it has found any slot that has the specified item provided. Replace namespace:item_name with any item you wish to check for. Test for items within the player's inventory #įormatted like: t.val = 0 t.i = 0 loop(27, ) Offhand slot for things like Shield, Totem of Undying or a MapĮntities that has an inventory, like the player, minecart with chests, donkey, etc. Possible equipment slot are as follows: Slot Name Takes the equipment slot name first, followed by the slot index value, and then the list of item names with namespaces after it. query.get_equipped_item_name #įormatted like: query.is_item_name_any('', 0, 'namespace:item_name') Query returns color value in specified channel. Where slot and channel are both integer arguments, from the following tables: Slot # Argument It might be fixed in later versions.įormatted like: color = query.armor_color_slot(slot, channel). Notice: As of version 1.16.100.51, this query is crashing minecraft. query.armor_material_slot #įormatted like: query.armor_material_slot(x) = y. Query.armor_texture_slot(3) = 1: queries for Iron Boots. Where x and y are both integer arguments, from the following table: X # Argument The full list of queries can be found here! query.armor_texture_slot #įormatted like: query.armor_texture_slot(x) = y. This page is not an exhaustive list list! It only contains queries we've written extra information for.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |