mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-26 08:19:24 +01:00
added the farming stencil
This commit is contained in:
parent
93e1958040
commit
2dbed5813e
7 changed files with 44 additions and 1 deletions
|
@ -3,6 +3,7 @@ package de.ellpeck.naturesaura.blocks.tiles;
|
|||
import de.ellpeck.naturesaura.Helper;
|
||||
import de.ellpeck.naturesaura.aura.chunk.AuraChunk;
|
||||
import de.ellpeck.naturesaura.blocks.ModBlocks;
|
||||
import de.ellpeck.naturesaura.items.ModItems;
|
||||
import de.ellpeck.naturesaura.packet.PacketHandler;
|
||||
import de.ellpeck.naturesaura.packet.PacketParticles;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
|
@ -90,7 +91,12 @@ public class TileEntityPlacer extends TileEntityImpl implements ITickable {
|
|||
|
||||
for (EntityItemFrame frame : frames) {
|
||||
ItemStack frameStack = frame.getDisplayedItem();
|
||||
if (!frameStack.isEmpty() && Helper.areItemsEqual(stack, frameStack, false))
|
||||
if (frameStack.isEmpty())
|
||||
continue;
|
||||
if(Helper.areItemsEqual(stack, frameStack, false))
|
||||
return true;
|
||||
|
||||
if(state.getBlock() == Blocks.FARMLAND && frameStack.getItem() == ModItems.FARMING_STENCIL)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -27,4 +27,5 @@ public final class ModItems {
|
|||
public static final Item SHOCKWAVE_CREATOR = new ItemShockwaveCreator();
|
||||
public static final Item MULTIBLOCK_MAKER = new ItemMultiblockMaker();
|
||||
public static final Item AURA_BOTTLE = new ItemAuraBottle();
|
||||
public static final Item FARMING_STENCIL = new ItemImpl("farming_stencil");
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ item.naturesaura.aura_bottle.overworld.name=Bottled Sunlight
|
|||
item.naturesaura.aura_bottle.nether.name=Bottled Ghosts
|
||||
item.naturesaura.aura_bottle.end.name=Bottled Darkness
|
||||
item.naturesaura.aura_bottle.other.name=Bottled Substance
|
||||
item.naturesaura.farming_stencil.name=Farming Stencil
|
||||
|
||||
container.naturesaura.tree_ritual.name=Ritual of the Forest
|
||||
container.naturesaura.altar.name=Natural Altar Infusion
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "naturesaura:items/farming_stencil"
|
||||
}
|
||||
}
|
|
@ -16,6 +16,11 @@
|
|||
"type": "crafting",
|
||||
"text": "Creating the $(item)Imperceptible Builder$()",
|
||||
"recipe": "naturesaura:placer"
|
||||
},
|
||||
{
|
||||
"type": "crafting",
|
||||
"text": "The $(item)Farming Stencil$() can be used with the builder to allow it to place things on $(item)Farmland$(). Just place it in one of the item frames like you would with a normal block.",
|
||||
"recipe": "naturesaura:farming_stencil"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"type": "forge:ore_shaped",
|
||||
"pattern": [
|
||||
"WHW",
|
||||
"WDW",
|
||||
"WWW"
|
||||
],
|
||||
"key": {
|
||||
"W": {
|
||||
"type": "forge:ore_dict",
|
||||
"ore": "plankWood"
|
||||
},
|
||||
"D": {
|
||||
"item": "minecraft:dirt",
|
||||
"data": 0
|
||||
},
|
||||
"H": {
|
||||
"item": "naturesaura:infused_iron_hoe"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "naturesaura:farming_stencil"
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 547 B |
Loading…
Reference in a new issue