Skip to content

Commit f9e314f

Browse files
committed
MCreator 2025.3 update 1/2
1 parent 5acbeb2 commit f9e314f

File tree

201 files changed

+1414
-1114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+1414
-1114
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- name: Checkout MCreator repository
2222
uses: actions/checkout@v4
2323
with:
24-
repository: MCreator/MCreator
25-
ref: 2025.3.45720
24+
repository: Spectrall368/MCreator
25+
ref: old_mcreator
2626
path: mcreator
2727
- name: Set up JDK 21
2828
uses: actions/setup-java@v4

src/main/resources/forge-1.17.1/block.definition.yaml

Lines changed: 106 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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

402431
block_base_properties:
@@ -421,33 +450,77 @@ localizationkeys:
421450

422451
tags:
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

src/main/resources/forge-1.17.1/gui.definition.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ templates:
99
- template: gui/gui_msg_slot.java.ftl
1010
name: "@SRCROOT/@BASEPACKAGEPATH/network/@NAMESlotMessage.java"
1111
condition: hasSlotEvents()
12+
- template: gui/gui_msg_slider.java.ftl
13+
name: "@SRCROOT/@BASEPACKAGEPATH/network/@NAMESliderMessage.java"
14+
condition: hasSliderEvents()
1215

1316
global_templates:
1417
- template: elementinits/menus.java.ftl
@@ -33,4 +36,10 @@ localizationkeys:
3336
mapto: text
3437
- fromlist: data.getComponentsOfType('Checkbox')
3538
key: gui.@modid.@registryname.@[getName()]
36-
mapto: text
39+
mapto: text
40+
- fromlist: data.getComponentsOfType('Slider')
41+
key: gui.@modid.@registryname.@[getName()]_prefix
42+
mapto: prefix
43+
- fromlist: data.getComponentsOfType('Slider')
44+
key: gui.@modid.@registryname.@[getName()]_suffix
45+
mapto: suffix

src/main/resources/forge-1.17.1/item.definition.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ list_templates:
6262
tags:
6363
- tag: ITEMS:minecraft:music_discs
6464
condition: isMusicDisc
65+
- tag: ITEMS:minecraft:piglin_loved
66+
condition: isPiglinCurrency
6567

6668
localizationkeys:
6769
- key: item.@modid.@registryname
@@ -75,4 +77,4 @@ localizationkeys:
7577
- fromlist: data.getFixedSpecialInformation()
7678
key: item.@modid.@registryname.description_@item_index
7779

78-
field_exclusions: [musicDiscLengthInTicks]
80+
field_exclusions: [musicDiscLengthInTicks, animations]

src/main/resources/forge-1.17.1/livingentity.definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ unmodifiable_ai_bases: [ Bat, MagmaCube, Slime ]
1515

1616
tags:
1717
- tag: ENTITIES:minecraft:raiders
18-
condition: "${data.mobBehaviourType == 'Raider'}"
18+
condition: "mobBehaviourType %= Raider"
1919

2020
- tag: GAME_EVENTS:minecraft:@registryname_can_listen
2121
condition:

src/main/resources/forge-1.17.1/mappings/screens.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ Win: WinScreen
8282
Advancements: AdvancementsScreen
8383
ItemCombiner: ItemCombinerScreen
8484
SocialInteractions: SocialInteractionsScreen
85-
Realms: RealmsScreen
86-
DisconnectedRealms: DisconnectedRealmsScreen
85+
Realms: RealmsScreen

src/main/resources/forge-1.17.1/mappings/types.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ dimensiontype: ResourceKey<Level>
1313
actionresulttype: InteractionResult
1414
cmdcontext: CommandContext<CommandSourceStack>
1515
damagesource: DamageSource
16+
vector: Vec3
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<#assign floatParameters = ["FALL_DISTANCE", "FALL_DAMAGE_MULTIPLIER", "CRITICAL_DAMAGE_MULTIPLIER"]>
22
<#assign intParameters = ["DROPPED_EXPERIENCE"]>
3-
if (event instanceof ${eventClass} _event){
3+
if (event instanceof ${eventClass} _event) {
44
<#if floatParameters?seq_contains(fieldParameterName)>
55
_event.${method}(${opt.toFloat(inputValue)});
6-
<#elseif intParameters?seq_contains(fieldParameterName)>
6+
<#elseif intParameters?seq_contains(fieldParameterName)>
77
_event.${method}(${opt.toInt(inputValue)});
8-
<#else>
8+
<#else>
99
_event.${method}(${inputValue});
10-
</#if>
10+
</#if>
1111
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
<#include "mcitems.ftl">
2-
/*@ItemStack*/(${mappedBlockToBlock(input$block)} instanceof LiquidBlock _liquid ?
3-
new ItemStack(_liquid.getFluid().getBucket()) : ItemStack.EMPTY)
2+
/*@ItemStack*/(${mappedBlockToBlock(input$block)} instanceof LiquidBlock _liquid ? new ItemStack(_liquid.getFluid().getBucket()) : ItemStack.EMPTY)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<#include "mcelements.ftl">
2+
<#include "mcitems.ftl">
3+
<@addTemplate file="utils/block_inventory/can_insert.java.ftl"/>
4+
(canInsertInBlockInventory(world, ${toBlockPos(input$x, input$y, input$z)}, ${opt.toInt(input$slotid)}, ${opt.toInt(input$amount)}, ${mappedMCItemToItemStackCode(input$item, 1)}))

0 commit comments

Comments
 (0)