forked from MCreator/MCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MCreator:master' into master
- Loading branch information
Showing
184 changed files
with
1,669 additions
and
1,125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
plugins/generator-1.19.4/datapack-1.19.4/structure.definition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
templates: | ||
- template: structure/structure_set.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/structure_set/@registryname.json" | ||
- template: structure/structure.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/structure/@registryname.json" | ||
- template: structure/template_pool.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/template_pool/@registryname.json" |
22 changes: 22 additions & 0 deletions
22
plugins/generator-1.19.4/datapack-1.19.4/templates/structure/structure.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<#assign spawnBiomes = w.filterBrokenReferences(data.restrictionBiomes)> | ||
{ | ||
"type": "minecraft:jigsaw", | ||
"start_pool": "${modid}:${registryname}", | ||
"size": 1, | ||
"max_distance_from_center": 64, | ||
"spawn_overrides": {}, | ||
"step": "${generator.map(data.generationStep, "generationsteps")}", | ||
"terrain_adaptation": "${data.terrainAdaptation}", | ||
"start_height": { | ||
"absolute": 0 | ||
}, | ||
"project_start_to_heightmap": "${data.surfaceDetectionType}", | ||
<#if spawnBiomes?size == 1> | ||
"biomes": "${spawnBiomes?first}", | ||
<#else> | ||
"biomes": [ | ||
<#list spawnBiomes as spawnBiome>"${spawnBiome}"<#sep>,</#list> | ||
], | ||
</#if> | ||
"use_expansion_hack": false | ||
} |
14 changes: 14 additions & 0 deletions
14
plugins/generator-1.19.4/datapack-1.19.4/templates/structure/structure_set.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"structures": [ | ||
{ | ||
"structure": "${modid}:${registryname}", | ||
"weight": 1 | ||
} | ||
], | ||
"placement": { | ||
"type": "minecraft:random_spread", | ||
"spacing": ${data.spacing}, | ||
"separation": ${data.separation}, | ||
"salt": ${thelper.randompositiveint(registryname)} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
plugins/generator-1.19.4/datapack-1.19.4/templates/structure/template_pool.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "${modid}:${registryname}", | ||
"fallback": "minecraft:empty", | ||
"elements": [ | ||
{ | ||
"weight": 1, | ||
"element": { | ||
"element_type": "minecraft:single_pool_element", | ||
"location": "${modid}:${data.structure}", | ||
"projection": "${data.projection}", | ||
"processors": { | ||
"processors": [ | ||
{ | ||
"processor_type": "minecraft:block_ignore", | ||
"blocks": [ | ||
<#if data.ignoreBlocks == "STRUCTURE_BLOCK"> | ||
{ | ||
"Name": "minecraft:structure_block" | ||
} | ||
<#elseif data.ignoreBlocks == "AIR_AND_STRUCTURE_BLOCK"> | ||
{ | ||
"Name": "minecraft:structure_block" | ||
}, | ||
{ | ||
"Name": "minecraft:air" | ||
} | ||
<#elseif data.ignoreBlocks == "AIR"> | ||
{ | ||
"Name": "minecraft:air" | ||
} | ||
</#if> | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_is_elytra_flying.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isFallFlying():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isFallFlying()) |
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_isblocking.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isBlocking():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isBlocking()) |
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_ischild.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isBaby():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isBaby()) |
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_issleeping.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isSleeping():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isSleeping()) |
14 changes: 6 additions & 8 deletions
14
plugins/generator-1.19.4/forge-1.19.4/structure.definition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
templates: | ||
- template: structure/structure.java.ftl | ||
name: "@SRCROOT/@BASEPACKAGEPATH/world/features/@NAMEFeature.java" | ||
- template: json/structure_feature_biome_modifier.json.ftl | ||
- template: structure/structure_set.json.ftl # loaded from datapack generator | ||
writer: json | ||
name: "@MODDATAROOT/forge/biome_modifier/@registryname_biome_modifier.json" | ||
- template: structure/configured_structure.json.ftl | ||
name: "@MODDATAROOT/worldgen/structure_set/@registryname.json" | ||
- template: structure/structure.json.ftl # loaded from datapack generator | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/configured_feature/@registryname.json" | ||
- template: structure/placed_structure.json.ftl | ||
name: "@MODDATAROOT/worldgen/structure/@registryname.json" | ||
- template: structure/template_pool.json.ftl # loaded from datapack generator | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/placed_feature/@registryname.json" | ||
name: "@MODDATAROOT/worldgen/template_pool/@registryname.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
plugins/generator-1.20.1/datapack-1.20.1/structure.definition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
templates: | ||
- template: structure/structure_set.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/structure_set/@registryname.json" | ||
- template: structure/structure.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/structure/@registryname.json" | ||
- template: structure/template_pool.json.ftl | ||
writer: json | ||
name: "@MODDATAROOT/worldgen/template_pool/@registryname.json" |
22 changes: 22 additions & 0 deletions
22
plugins/generator-1.20.1/datapack-1.20.1/templates/structure/structure.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<#assign spawnBiomes = w.filterBrokenReferences(data.restrictionBiomes)> | ||
{ | ||
"type": "minecraft:jigsaw", | ||
"start_pool": "${modid}:${registryname}", | ||
"size": 1, | ||
"max_distance_from_center": 64, | ||
"spawn_overrides": {}, | ||
"step": "${generator.map(data.generationStep, "generationsteps")}", | ||
"terrain_adaptation": "${data.terrainAdaptation}", | ||
"start_height": { | ||
"absolute": 0 | ||
}, | ||
"project_start_to_heightmap": "${data.surfaceDetectionType}", | ||
<#if spawnBiomes?size == 1> | ||
"biomes": "${spawnBiomes?first}", | ||
<#else> | ||
"biomes": [ | ||
<#list spawnBiomes as spawnBiome>"${spawnBiome}"<#sep>,</#list> | ||
], | ||
</#if> | ||
"use_expansion_hack": false | ||
} |
14 changes: 14 additions & 0 deletions
14
plugins/generator-1.20.1/datapack-1.20.1/templates/structure/structure_set.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"structures": [ | ||
{ | ||
"structure": "${modid}:${registryname}", | ||
"weight": 1 | ||
} | ||
], | ||
"placement": { | ||
"type": "minecraft:random_spread", | ||
"spacing": ${data.spacing}, | ||
"separation": ${data.separation}, | ||
"salt": ${thelper.randompositiveint(registryname)} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
plugins/generator-1.20.1/datapack-1.20.1/templates/structure/template_pool.json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "${modid}:${registryname}", | ||
"fallback": "minecraft:empty", | ||
"elements": [ | ||
{ | ||
"weight": 1, | ||
"element": { | ||
"element_type": "minecraft:single_pool_element", | ||
"location": "${modid}:${data.structure}", | ||
"projection": "${data.projection}", | ||
"processors": { | ||
"processors": [ | ||
{ | ||
"processor_type": "minecraft:block_ignore", | ||
"blocks": [ | ||
<#if data.ignoreBlocks == "STRUCTURE_BLOCK"> | ||
{ | ||
"Name": "minecraft:structure_block" | ||
} | ||
<#elseif data.ignoreBlocks == "AIR_AND_STRUCTURE_BLOCK"> | ||
{ | ||
"Name": "minecraft:structure_block" | ||
}, | ||
{ | ||
"Name": "minecraft:air" | ||
} | ||
<#elseif data.ignoreBlocks == "AIR"> | ||
{ | ||
"Name": "minecraft:air" | ||
} | ||
</#if> | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_is_elytra_flying.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isFallFlying():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isFallFlying()) |
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_isblocking.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isBlocking():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isBlocking()) |
2 changes: 1 addition & 1 deletion
2
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_ischild.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(${input$entity} instanceof LivingEntity _livEnt ? _livEnt.isBaby():false) | ||
(${input$entity} instanceof LivingEntity _livEnt${cbi} && _livEnt${cbi}.isBaby()) |
Oops, something went wrong.