@@ -23,7 +23,7 @@ templates:
2323 - template : json/block_item.json.ftl
2424 condition :
2525 - hasBlockItem
26- - " renderType() #?= 10,11,12,14,110,120,2,4"
26+ - " renderType() #?= 10,11,12,14,15, 110,120,150 ,2,4"
2727 writer : json
2828 name : " @MODASSETSROOT/models/item/@registryname.json"
2929 - template : json/block_item_cmodel.json.ftl
@@ -60,6 +60,11 @@ templates:
6060 condition : " renderType() #= 14"
6161 writer : json
6262 name : " @MODASSETSROOT/models/block/@registryname.json"
63+ - template : json/block.json.ftl
64+ condition : " renderType() #= 15"
65+ writer : json
66+ name : " @MODASSETSROOT/models/block/@registryname.json"
67+ variables : " model=flower_pot_cross;txname=plant"
6368 - template : json/block.json.ftl
6469 condition : " renderType() #= 110"
6570 writer : json
@@ -70,6 +75,11 @@ templates:
7075 writer : json
7176 variables : " model=tinted_cross;txname=cross"
7277 name : " @MODASSETSROOT/models/block/@registryname.json"
78+ - template : json/block.json.ftl
79+ condition : " renderType() #= 150"
80+ writer : json
81+ name : " @MODASSETSROOT/models/block/@registryname.json"
82+ variables : " model=tinted_flower_pot_cross;txname=plant"
7383 - template : json/block_cmodel.json.ftl
7484 condition : " renderType() #= 2"
7585 writer : json
@@ -260,25 +270,30 @@ templates:
260270 condition : " blockBase %= Pane"
261271 writer : json
262272 name : " @MODASSETSROOT/blockstates/@registryname.json"
263- - template : json/txblock/pane_side .json.ftl
273+ - template : json/block_model_tb .json.ftl
264274 condition : " blockBase %= Pane"
265275 writer : json
276+ variables : " model=template_glass_pane_side;txname=pane;txname_top=edge"
266277 name : " @MODASSETSROOT/models/block/@registryname_side.json"
267- - template : json/txblock/pane_side_alt .json.ftl
278+ - template : json/block_model_tb .json.ftl
268279 condition : " blockBase %= Pane"
269280 writer : json
281+ variables : " model=template_glass_pane_side_alt;txname=pane;txname_top=edge"
270282 name : " @MODASSETSROOT/models/block/@registryname_side_alt.json"
271- - template : json/txblock/pane_post .json.ftl
283+ - template : json/block_model_tb .json.ftl
272284 condition : " blockBase %= Pane"
273285 writer : json
286+ variables : " model=template_glass_pane_post;txname=pane;txname_top=edge"
274287 name : " @MODASSETSROOT/models/block/@registryname_post.json"
275- - template : json/txblock/pane_noside .json.ftl
288+ - template : json/block .json.ftl
276289 condition : " blockBase %= Pane"
277290 writer : json
291+ variables : " model=template_glass_pane_noside;txname=pane"
278292 name : " @MODASSETSROOT/models/block/@registryname_noside.json"
279- - template : json/txblock/pane_noside_alt .json.ftl
293+ - template : json/block .json.ftl
280294 condition : " blockBase %= Pane"
281295 writer : json
296+ variables : " model=template_glass_pane_noside_alt;txname=pane"
282297 name : " @MODASSETSROOT/models/block/@registryname_noside_alt.json"
283298
284299 # TX: Door templates
@@ -292,21 +307,25 @@ templates:
292307 condition : " blockBase %= Door"
293308 writer : json
294309 name : " @MODASSETSROOT/blockstates/@registryname.json"
295- - template : json/txblock/door_top .json.ftl
310+ - template : json/block_model_tb .json.ftl
296311 condition : " blockBase %= Door"
297312 writer : json
313+ variables : " model=door_top;txname=bottom;txname_top=top"
298314 name : " @MODASSETSROOT/models/block/@registryname_top.json"
299- - template : json/txblock/door_top_hinge .json.ftl
315+ - template : json/block_model_tb .json.ftl
300316 condition : " blockBase %= Door"
301317 writer : json
318+ variables : " model=door_top_rh;txname=bottom;txname_top=top"
302319 name : " @MODASSETSROOT/models/block/@registryname_top_hinge.json"
303- - template : json/txblock/door_bottom .json.ftl
320+ - template : json/block_model_tb .json.ftl
304321 condition : " blockBase %= Door"
305322 writer : json
323+ variables : " model=door_bottom;txname=bottom;txname_top=top"
306324 name : " @MODASSETSROOT/models/block/@registryname_bottom.json"
307- - template : json/txblock/door_bottom_hinge .json.ftl
325+ - template : json/block_model_tb .json.ftl
308326 condition : " blockBase %= Door"
309327 writer : json
328+ variables : " model=door_bottom_rh;txname=bottom;txname_top=top"
310329 name : " @MODASSETSROOT/models/block/@registryname_bottom_hinge.json"
311330
312331 # TX: FenceGate templates
@@ -320,21 +339,25 @@ templates:
320339 condition : " blockBase %= FenceGate"
321340 writer : json
322341 name : " @MODASSETSROOT/blockstates/@registryname.json"
323- - template : json/txblock/fence_gate .json.ftl
342+ - template : json/block .json.ftl
324343 condition : " blockBase %= FenceGate"
325344 writer : json
345+ variables : " model=template_fence_gate;txname=texture"
326346 name : " @MODASSETSROOT/models/block/@registryname.json"
327- - template : json/txblock/fence_gate_open .json.ftl
347+ - template : json/block .json.ftl
328348 condition : " blockBase %= FenceGate"
329349 writer : json
350+ variables : " model=template_fence_gate_open;txname=texture"
330351 name : " @MODASSETSROOT/models/block/@registryname_open.json"
331- - template : json/txblock/fence_gate_wall .json.ftl
352+ - template : json/block .json.ftl
332353 condition : " blockBase %= FenceGate"
333354 writer : json
355+ variables : " model=template_fence_gate_wall;txname=texture"
334356 name : " @MODASSETSROOT/models/block/@registryname_wall.json"
335- - template : json/txblock/fence_gate_wall_open .json.ftl
357+ - template : json/block .json.ftl
336358 condition : " blockBase %= FenceGate"
337359 writer : json
360+ variables : " model=template_fence_gate_wall_open;txname=texture"
338361 name : " @MODASSETSROOT/models/block/@registryname_wall_open.json"
339362
340363 # TX: EndRod template
@@ -348,9 +371,10 @@ templates:
348371 condition : " blockBase %= EndRod"
349372 writer : json
350373 name : " @MODASSETSROOT/blockstates/@registryname.json"
351- - template : json/txblock/end_rod .json.ftl
374+ - template : json/block .json.ftl
352375 condition : " blockBase %= EndRod"
353376 writer : json
377+ variables : " model=end_rod;txname=end_rod"
354378 name : " @MODASSETSROOT/models/block/@registryname.json"
355379
356380 # TX: PressurePlate templates
@@ -364,13 +388,15 @@ templates:
364388 condition : " blockBase %= PressurePlate"
365389 writer : json
366390 name : " @MODASSETSROOT/blockstates/@registryname.json"
367- - template : json/txblock/pressure_plate .json.ftl
391+ - template : json/block .json.ftl
368392 condition : " blockBase %= PressurePlate"
369393 writer : json
394+ variables : " model=pressure_plate_up;txname=texture"
370395 name : " @MODASSETSROOT/models/block/@registryname.json"
371- - template : json/txblock/pressure_plate_down .json.ftl
396+ - template : json/block .json.ftl
372397 condition : " blockBase %= PressurePlate"
373398 writer : json
399+ variables : " model=pressure_plate_down;txname=texture"
374400 name : " @MODASSETSROOT/models/block/@registryname_down.json"
375401
376402 # TX: Wood StoneButton templates
@@ -384,19 +410,22 @@ templates:
384410 condition : " blockBase %= Button"
385411 writer : json
386412 name : " @MODASSETSROOT/blockstates/@registryname.json"
387- - template : json/txblock/button .json.ftl
413+ - template : json/block .json.ftl
388414 condition : " blockBase %= Button"
389415 writer : json
416+ variables : " model=button;txname=texture"
390417 name : " @MODASSETSROOT/models/block/@registryname.json"
391- - template : json/txblock/button_pressed .json.ftl
418+ - template : json/block .json.ftl
392419 condition : " blockBase %= Button"
393420 writer : json
421+ variables : " model=button_pressed;txname=texture"
394422 name : " @MODASSETSROOT/models/block/@registryname_pressed.json"
395- - template : json/txblock/button_inventory .json.ftl
423+ - template : json/block .json.ftl
396424 condition :
397425 - hasBlockItem
398426 - " blockBase %= Button"
399427 writer : json
428+ variables : " model=button_inventory;txname=texture"
400429 name : " @MODASSETSROOT/models/block/@registryname_inventory.json"
401430
402431block_base_properties :
@@ -421,33 +450,77 @@ localizationkeys:
421450
422451tags :
423452 - tag : BLOCKS:minecraft:mineable/pickaxe
424- condition : " ${data. destroyTool == ' pickaxe'} "
453+ condition : " destroyTool %= pickaxe"
425454 - tag : BLOCKS:minecraft:mineable/axe
426- condition : " ${data. destroyTool == ' axe'} "
455+ condition : " destroyTool %= axe"
427456 - tag : BLOCKS:minecraft:mineable/shovel
428- condition : " ${data. destroyTool == ' shovel'} "
457+ condition : " destroyTool %= shovel"
429458 - tag : BLOCKS:minecraft:mineable/hoe
430- condition : " ${data. destroyTool == ' hoe'} "
459+ condition : " destroyTool %= hoe"
431460
432461 - tag : BLOCKS:minecraft:needs_stone_tool
433- condition : " ${data.requiresCorrectTool && data.vanillaToolTier == 'STONE'}"
462+ condition :
463+ - requiresCorrectTool
464+ - " vanillaToolTier %= STONE"
434465 - tag : BLOCKS:minecraft:needs_iron_tool
435- condition : " ${data.requiresCorrectTool && data.vanillaToolTier == 'IRON'}"
466+ condition :
467+ - requiresCorrectTool
468+ - " vanillaToolTier %= IRON"
436469 - tag : BLOCKS:minecraft:needs_diamond_tool
437- condition : " ${data.requiresCorrectTool && data.vanillaToolTier == 'DIAMOND'}"
470+ condition :
471+ - requiresCorrectTool
472+ - " vanillaToolTier %= DIAMOND"
438473
439474 - tag : BLOCKS:minecraft:stairs
440- condition : " ${data. blockBase! == ' Stairs'} "
475+ condition : " blockBase %= Stairs"
441476 - tag : BLOCKS:minecraft:slabs
442- condition : " ${data. blockBase! == ' Slab'} "
477+ condition : " blockBase %= Slab"
443478 - tag : BLOCKS:minecraft:wooden_fences
444- condition : " ${(data.blockBase! == 'Fence') && (data.blockSetType == 'OAK')}"
479+ condition :
480+ - " blockBase %= Fence"
481+ - " blockSetType %= OAK"
445482 - tag : BLOCKS:minecraft:fences
446- condition : " ${(data.blockBase! == 'Fence') && (data.blockSetType != 'OAK')}"
483+ condition :
484+ - " blockBase %= Fence"
485+ - " !blockSetType %= OAK"
447486 - tag : BLOCKS:minecraft:walls
448- condition : " ${data. blockBase! == ' Wall'} "
487+ condition : " blockBase %= Wall"
449488 - tag : BLOCKS:minecraft:leaves
450- condition : " ${data.blockBase! == 'Leaves'}"
489+ condition : " blockBase %= Leaves"
490+ - tag : BLOCKS:minecraft:wooden_trapdoors
491+ condition :
492+ - " blockBase %= TrapDoor"
493+ - " blockSetType %= OAK"
494+ - tag : BLOCKS:minecraft:trapdoors
495+ condition :
496+ - " blockBase %= TrapDoor"
497+ - " !blockSetType %= OAK"
498+ - tag : BLOCKS:minecraft:wooden_doors
499+ condition :
500+ - " blockBase %= Door"
501+ - " blockSetType %= OAK"
502+ - tag : BLOCKS:minecraft:doors
503+ condition :
504+ - " blockBase %= Door"
505+ - " !blockSetType %= OAK"
506+ - tag : BLOCKS:minecraft:wooden_pressure_plates
507+ condition :
508+ - " blockBase %= PressurePlate"
509+ - " blockSetType %= OAK"
510+ - tag : BLOCKS:minecraft:pressure_plates
511+ condition :
512+ - " blockBase %= PressurePlate"
513+ - " !blockSetType %= OAK"
514+ - tag : BLOCKS:minecraft:wooden_buttons
515+ condition :
516+ - " blockBase %= Button"
517+ - " blockSetType %= OAK"
518+ - tag : BLOCKS:minecraft:buttons
519+ condition :
520+ - " blockBase %= Button"
521+ - " !blockSetType %= OAK"
522+ - tag : BLOCKS:minecraft:flower_pots
523+ condition : " blockBase %= FlowerPot"
451524
452525 - tag : BLOCKS:minecraft:climbable
453526 condition : isLadder
0 commit comments