Skip to content

Commit

Permalink
feat: Head hats no longer stackable
Browse files Browse the repository at this point in the history
Using warped_fungus_on_a_stick as head items instead of sticks
  • Loading branch information
OrangeUtan committed Jul 7, 2021
1 parent ffbc76a commit 6da3341
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 11 deletions.
4 changes: 2 additions & 2 deletions beet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ meta:
prefix_identifiers: true
hats:
cmd_id: 777
default_item_head: minecraft:stick
default_item_head: minecraft:warped_fungus_on_a_stick
default_item_inventory: minecraft:leather_helmet
installation_advancement:
author_skull_owner: Oran9eUtan
icon:
item: "minecraft:stick"
item: "minecraft:warped_fungus_on_a_stick"
nbt: "{CustomModelData: {{ hats.hat.fez.cmd }}}"
render:
data_pack:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
},
{
"condition": "minecraft:reference",
"name": "oran9eutan:hats/player/dropped_stick"
"name": "oran9eutan:hats/player/dropped_warped_fungus_on_a_stick"
}
]
]
}

]
}
}
},
"rewards": {
"function": "oran9eutan:hats/event/player_dropped_hat_item"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ execute if {{ hats.setting["dog_conversion"].is_true }} as @e[type=item,distance

# Reset trigger
scoreboard players set @s hats.dropLthrHlm 0
scoreboard players set @s hats.dropStick 0
scoreboard players set @s hats.drpWFOAS 0
advancement revoke @s only oran9eutan:hats/event/player_dropped_hat_item
2 changes: 1 addition & 1 deletion datapack/data/oran9eutan/functions/hats/install.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Create scoreboards
scoreboard objectives add hats.math dummy
scoreboard objectives add hats.dropLthrHlm minecraft.dropped:minecraft.leather_helmet
scoreboard objectives add hats.dropStick minecraft.dropped:minecraft.stick
scoreboard objectives add hats.drpWFOAS minecraft.dropped:minecraft.warped_fungus_on_a_stick
scoreboard objectives add hats.fix_old_hat trigger

# Initialize settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tellraw @a[tag=!global.ignore,tag=!global.ignore.gui] ["",{"text":"Uninstalling
scoreboard objectives remove hats.math
scoreboard objectives remove hats.cfg
scoreboard objectives remove hats.dropLthrHlm
scoreboard objectives remove hats.dropStick
scoreboard objectives remove hats.drpWFOAS
scoreboard objectives remove hats.fix_old_hat

# Remove storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"hats.dropStick": {
"hats.drpWFOAS": {
"min": 1,
"max": 2147483647
}
}
}
}
19 changes: 19 additions & 0 deletions hats/templates/models/warped_fungus_on_a_stick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parent": "minecraft:item/handheld_rod",
"textures": {
"layer0": "minecraft:item/warped_fungus_on_a_stick"
}
{%- if overrides %}
,
"overrides":[
{% for override in overrides %}
{
"predicate":{
"custom_model_data": {{ override.cmd }}
},
"model": "{{ override.model }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
{%- endif %}
}

0 comments on commit 6da3341

Please sign in to comment.