Skip to content

Commit

Permalink
Ported some comparison related procedure blocks to 1.16.4 (#4) (#586)
Browse files Browse the repository at this point in the history
* Added comparison procedure blocks

* Fixed broken tag compare procedures

Signed-off-by: KlemenDEV <klemen.pylo@gmail.com>

Co-authored-by: KlemenDEV <klemen.pylo@gmail.com>
  • Loading branch information
Max094Reikeb and KlemenDEV committed Dec 2, 2020
1 parent e6bb0c0 commit d522598
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 0 deletions.
@@ -0,0 +1,2 @@
(world instanceof World && ((World) world).getServer() != null?((World) world).getServer().getAdvancementManager()
.getAdvancement(new ResourceLocation("${generator.map(field$achievement, "achievements")}" )).equals(advancement):false)
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
/*@ItemStack*/(new ItemStack(${mappedBlockToBlockStateCode(input$source)}.getBlock()))
@@ -0,0 +1 @@
(${input$a} == ${input$b})
@@ -0,0 +1 @@
(${input$a} == ${input$b})
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(${mappedBlockToBlockStateCode(input$a)}.getMaterial() == net.minecraft.block.material.Material.${generator.map(field$material, "materials")})
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(${mappedBlockToBlockStateCode(input$a)}.getBlock()== ${mappedBlockToBlockStateCode(input$b)}.getBlock())
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(${mappedBlockToBlockStateCode(input$a)}.getBlock()== ${mappedBlockToBlockStateCode(input$b)}.getBlock())
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(${mappedMCItemToItemStackCode(input$a,1)}.getItem() == ${mappedMCItemToItemStackCode(input$b,1)}.getItem())
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(${mappedMCItemToItemStackCode(input$a,1)}.getItem() == ${mappedMCItemToItemStackCode(input$b,1)}.getItem())
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(ItemTags.getCollection().getTagByID(new ResourceLocation((${input$b}).toLowerCase(java.util.Locale.ENGLISH))).contains(${mappedMCItemToItemStackCode(input$a,1)}.getItem()))
@@ -0,0 +1,2 @@
<#include "mcitems.ftl">
(ItemTags.getCollection().getTagByID(new ResourceLocation((${input$b}).toLowerCase(java.util.Locale.ENGLISH))).contains(${mappedMCItemToItemStackCode(input$a,1)}.getItem()))

0 comments on commit d522598

Please sign in to comment.