Swap Item Models Based On Real World Time Or In Game Time
i have code to swap something based on the month and it seems to work fine but i was curious if i could change it to swap based on if it was night time in game or day time any ideas?
"model": { "type": "minecraft:select", "property": "minecraft:local_time", "pattern": "MM", "cases": [ { "when": "12", "model": { "type": "minecraft:select", "property": "minecraft:display_context", "cases": [ { "when": "head", "model": { "type": "minecraft:model", "model": "hoh:item/hoh_smashed_pumpkin" } } ], "fallback": { "type": "minecraft:model", "model": "hoh:item/hoh_smashed_pumpkin_item" } } } ], "fallback": { "type": "minecraft:select", "property": "minecraft:display_context", "cases": [ { "when": "head", "model": { "type": "minecraft:model", "model": "hoh:item/hoh_smashed_pumpkin_day" } } ], "fallback": { "type": "minecraft:model", "model": "hoh:item/hoh_smashed_pumpkin_day_item" } } } }```