Skip to content

Commit

Permalink
Merge branch 'MCreator:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
willpill authored Jan 21, 2024
2 parents 08d7bde + 07c90a8 commit be3d80d
Show file tree
Hide file tree
Showing 110 changed files with 1,140 additions and 572 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ dependencies {
}

javafx {
version = '21.0.1'
version = '21.0.2'
modules = ['javafx.web', 'javafx.swing']
configurations = ['provided', 'win64', 'macX64', 'macAarch64', 'linux64'] // we provide natives during deployment or with SDK
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:location",
"conditions": {
"player": [
Expand All @@ -13,4 +13,4 @@
}
]
}
}
},
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:placed_block",
"conditions": {
"block": "${input$block}"
}
}
},
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:impossible"
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:changed_dimension",
"conditions": {
<#if field$dimension == "Surface">
Expand All @@ -11,4 +11,4 @@
"to": "${generator.getResourceLocationForModElement(field$dimension.toString().replace("CUSTOM:", ""))}"
</#if>
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:changed_dimension",
"conditions": {
<#if field$dimension == "Surface">
Expand All @@ -11,4 +11,4 @@
"from": "${generator.getResourceLocationForModElement(field$dimension.toString().replace("CUSTOM:", ""))}"
</#if>
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:consume_item",
"conditions": {
"item": {
Expand All @@ -7,4 +7,4 @@
]
}
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:item_durability_changed",
"conditions": {
"item": {
Expand All @@ -11,4 +11,4 @@
}
}
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
Expand All @@ -13,4 +13,4 @@
}
]
}
}
},
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:tick"
}
},
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
</#if>
"criteria": {
"${registryname}": ${triggercode}
${triggercode?keep_before_last(",")}
}
<#if data.hasRewards()>,
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
</#if>
"criteria": {
"${registryname}": ${triggercode}
${triggercode?keep_before_last(",")}
}
<#if data.hasRewards()>,
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ import org.apache.logging.log4j.Logger;
}

private static final String PROTOCOL_VERSION = "1";
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(new ResourceLocation(MODID, MODID),
() -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals);
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(
new ResourceLocation(MODID, MODID),
() -> PROTOCOL_VERSION,
PROTOCOL_VERSION::equals,
<#if settings.isServerSideOnly()>clientVersion -> true<#else>PROTOCOL_VERSION::equals</#if>
);

private static int messageID = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ authors="${settings.getAuthor()}"
<#if settings.getDescription()?has_content>
description="${settings.getDescription()}"
</#if>
<#if settings.isServerSideOnly()>
displayTest="IGNORE_SERVER_VERSION"
</#if>

[[dependencies.${settings.getModID()}]]
modId="minecraft"
Expand All @@ -32,15 +35,6 @@ description="${settings.getDescription()}"
ordering="NONE"
side="BOTH"

<#if !settings.isDisableForgeVersionCheck()>
[[dependencies.${settings.getModID()}]]
modId="forge"
mandatory=true
versionRange="[${generator.getGeneratorBuildFileVersion()}]"
ordering="NONE"
side="BOTH"
</#if>

<#list settings.getRequiredMods() as e>
[[dependencies.${settings.getModID()}]]
modId="${e}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
<#-- @formatter:off -->
package ${package}.client.renderer;

import com.mojang.math.Axis;

public class ${name}Renderer extends EntityRenderer<${name}Entity> {

private static final ResourceLocation texture = new ResourceLocation("${modid}:textures/entities/${data.customModelTexture}");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:location",
"conditions": {
"player": [
Expand All @@ -13,4 +13,4 @@
}
]
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:placed_block",
"conditions": {
"location": [
Expand All @@ -8,4 +8,4 @@
}
]
}
}
},
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:impossible"
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:changed_dimension",
"conditions": {
<#if field$dimension == "Surface">
Expand All @@ -11,4 +11,4 @@
"to": "${generator.getResourceLocationForModElement(field$dimension.toString().replace("CUSTOM:", ""))}"
</#if>
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:changed_dimension",
"conditions": {
<#if field$dimension == "Surface">
Expand All @@ -11,4 +11,4 @@
"from": "${generator.getResourceLocationForModElement(field$dimension.toString().replace("CUSTOM:", ""))}"
</#if>
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:consume_item",
"conditions": {
"item": {
Expand All @@ -7,4 +7,4 @@
]
}
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:item_durability_changed",
"conditions": {
"item": {
Expand All @@ -11,4 +11,4 @@
}
}
}
}
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
Expand All @@ -13,4 +13,4 @@
}
]
}
}
},
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"${registryname}_${cbi}": {
"trigger": "minecraft:tick"
}
},
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
</#if>
"criteria": {
"${registryname}": ${triggercode}
${triggercode?keep_before_last(",")}
}
<#if data.hasRewards()>,
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
</#if>
"criteria": {
"${registryname}": ${triggercode}
${triggercode?keep_before_last(",")}
}
<#if data.hasRewards()>,
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ import org.apache.logging.log4j.Logger;
}

private static final String PROTOCOL_VERSION = "1";
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(new ResourceLocation(MODID, MODID),
() -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals);
public static final SimpleChannel PACKET_HANDLER = NetworkRegistry.newSimpleChannel(
new ResourceLocation(MODID, MODID),
() -> PROTOCOL_VERSION,
PROTOCOL_VERSION::equals,
<#if settings.isServerSideOnly()>clientVersion -> true<#else>PROTOCOL_VERSION::equals</#if>
);

private static int messageID = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ authors="${settings.getAuthor()}"
<#if settings.getDescription()?has_content>
description="${settings.getDescription()}"
</#if>
<#if settings.isServerSideOnly()>
displayTest="IGNORE_SERVER_VERSION"
</#if>

[[dependencies.${settings.getModID()}]]
modId="minecraft"
Expand All @@ -32,15 +35,6 @@ description="${settings.getDescription()}"
ordering="NONE"
side="BOTH"

<#if !settings.isDisableForgeVersionCheck()>
[[dependencies.${settings.getModID()}]]
modId="forge"
mandatory=true
versionRange="[${generator.getGeneratorBuildFileVersion()}]"
ordering="NONE"
side="BOTH"
</#if>

<#list settings.getRequiredMods() as e>
[[dependencies.${settings.getModID()}]]
modId="${e}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
<#-- @formatter:off -->
package ${package}.client.renderer;

import com.mojang.math.Axis;

public class ${name}Renderer extends EntityRenderer<${name}Entity> {

private static final ResourceLocation texture = new ResourceLocation("${modid}:textures/entities/${data.customModelTexture}");
Expand Down
4 changes: 2 additions & 2 deletions plugins/mcreator-core/blockly/js/mcreator_blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ Blockly.Blocks['args_start'] = {
Blockly.Blocks['advancement_trigger'] = {
init: function () {
this.appendDummyInput().appendField(javabridge.t("blockly.block.advancement_trigger"));
this.setPreviousStatement(true);
this.setStyle('hat_blocks');
this.setNextStatement(true);
this.setColour(150);
this.setTooltip(javabridge.t("blockly.block.advancement_trigger.tooltip"));
}
};

Expand Down
1 change: 1 addition & 0 deletions plugins/mcreator-core/jsontriggers/biome_entered.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
],
"inputsInline": true,
"previousStatement": null,
"nextStatement": null,
"colour": 35,
"mcreator": {
Expand Down
1 change: 1 addition & 0 deletions plugins/mcreator-core/jsontriggers/block_placed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
],
"inputsInline": true,
"previousStatement": null,
"nextStatement": null,
"colour": 60,
"mcreator": {
Expand Down
Loading

0 comments on commit be3d80d

Please sign in to comment.