#Material: armor_chestplate not working
1 messages · Page 1 of 1 (latest)
?materials
I dont want a specific item there - its supposed to show the players armor slots
do you have checkitem expansion from placeholderAPI ?
i do now it didnt change anything
material: 'placeholder-%checkitem_getinfo:39_mat:%'
material: 'placeholder-%checkitem_getinfo:38_mat:%'
material: 'placeholder-%checkitem_getinfo:37_mat:%'
material: 'placeholder-%checkitem_getinfo:36_mat:%'
Found the issue <- The function used to be that if a player was not wearing any armor nothing would be shown in the menu - now it shows a stone block if player is not wearing armor
if i equip a piece of armor it does indeed work as intended
any way to fix the above?
try above, changed
nope - didnt work
shows nothing in chat
It appears to be an open issue on github
%changeoutput_equals_input:{checkitem_getinfo:39_mat:}_matcher:_ifmatch:air_else:{checkitem_getinfo:39_mat:}%
download changeoutput first
@winter cedar
Well that fixed the issue with the stone - but now it wont show what armor is equipped
/papi parse
shows the item equipped
send a short video
When wearing eg a diamond helmet then "DIAMOND_HELMET" is returned when running the papi parse command
when not wearing anything it returns "air"
so its fine
well the menu doesnt show the item when equipped <- but the placeholder does return the item
send config
This is what it looks like in the menu when i am wearing a helmet
open_command: menu
size: 54
menu_title: ':offset_-60::lemon_gui_commission_menu:'
items:
'world_button':
material: blue_dye
display_name: 'cffebBeta-world'
lore:
- '&7&oTo infinity and beyond!'
hide_attributes: true
model_data: 40
slot: 31
view_requirement:
requirements:
has_not_perm:
type: "has permission"
permission: mineuphoria.beta_player
'world_button2':
material: YELLOW_DYE
display_name: 'cffebBeta-world'
lore:
- '&7&oTo infinity and beyond!'
hide_attributes: true
model_data: 2
slot: 32
view_requirement:
requirements:
has_not_perm:
type: "has permission"
permission: mineuphoria.beta_player
'leaf_animation':
material: blue_dye
display_name: '&f'
hide_attributes: true
model_data: 2
slot: 30
'close':
material: 'YELLOW_DYE'
slot: 49
model_data: 2
display_name: '&cBack'
lore:
- '&7&oClose the menu'
left_click_commands:
- '[sound] BLOCK_BARREL_CLOSE 1 2'
- '[close]'
'player_helmet':
material: '%changeoutput_equals_input:{checkitem_getinfo:39_mat:}_matcher:_ifmatch:air_else:{checkitem_getinfo:39_mat:}%'
slot: 9
'player_chestplate':
material: armor_chestplate
slot: 18
'player_leggings':
material: armor_leggings
slot: 27
'player_boots':
material: armor_boots
slot: 36
you stupid, where is placeholder- before placeholder
Brilliant!
slight issue - this doesnt work with custom model data <- The issue with using "armor_chestplate" etc has been fixed in the next dev build according to another user who had the same problem
do you know a fix for the modeldata issue or should i just wait for the next dev build?
Sorry - i meant if wearing armor with custom model data it shows up as leather armor and not the custom model of the item