30 lines
1.7 KiB
Python
30 lines
1.7 KiB
Python
"""Extend the established pixel-art pack with a gilded spice shovel; no live publication."""
|
|
from pathlib import Path
|
|
import json
|
|
from PIL import Image, ImageDraw
|
|
|
|
ROOT=Path(__file__).resolve().parents[1]/'network/resource-pack/central/overlay/assets/dunerealms'
|
|
|
|
def build(root=ROOT):
|
|
image=Image.new('RGBA',(32,32));d=ImageDraw.Draw(image)
|
|
# Familiar diagonal shovel silhouette, gold alloy blade, dark grip and cyan inlay.
|
|
d.line([(5,27),(21,11)],fill='#202d2a',width=6)
|
|
d.line([(5,27),(21,11)],fill='#a27431',width=4)
|
|
d.line([(6,26),(21,11)],fill='#e2bc62',width=2)
|
|
d.polygon([(16,9),(24,3),(29,3),(29,8),(23,16),(19,14)],fill='#5a431f')
|
|
d.polygon([(18,9),(24,4),(28,4),(28,8),(23,14),(20,13)],fill='#d7a644')
|
|
d.line([(20,9),(25,5),(27,5)],fill='#fff0a1',width=2)
|
|
d.line([(23,11),(27,7)],fill='#aa6a25',width=2)
|
|
d.rectangle((3,25,6,28),fill='#263d39');d.point((4,26),fill='#71d7d2')
|
|
d.polygon([(19,15),(22,12),(23,13),(20,16)],fill='#6cd1c5')
|
|
for x in range(8):d.rectangle((11+x*2,29,11+x*2,30),fill='#e7c364')
|
|
out=root/'textures/item/pillager/goldmembers_shovel_mk8.png';out.parent.mkdir(parents=True,exist_ok=True);image.save(out,compress_level=9)
|
|
paths={
|
|
'items/pillager/goldmembers_shovel_mk8.json':{'model':{'type':'minecraft:model','model':'dunerealms:item/pillager/goldmembers_shovel_mk8'}},
|
|
'models/item/pillager/goldmembers_shovel_mk8.json':{'parent':'minecraft:item/handheld','textures':{'layer0':'dunerealms:item/pillager/goldmembers_shovel_mk8'}},
|
|
}
|
|
for name,value in paths.items():
|
|
target=root/name;target.parent.mkdir(parents=True,exist_ok=True);target.write_text(json.dumps(value,separators=(',',':'))+'\n',encoding='utf-8')
|
|
return out
|
|
|
|
if __name__=='__main__':print(build())
|

Staff