some more advancements and placer recipe+doc

This commit is contained in:
Ellpeck 2018-11-05 18:03:07 +01:00
parent 215144cc5e
commit 019956144d
11 changed files with 149 additions and 3 deletions

View file

@ -3,6 +3,8 @@ package de.ellpeck.naturesaura.blocks.tiles;
import de.ellpeck.naturesaura.Helper; import de.ellpeck.naturesaura.Helper;
import de.ellpeck.naturesaura.aura.chunk.AuraChunk; import de.ellpeck.naturesaura.aura.chunk.AuraChunk;
import de.ellpeck.naturesaura.blocks.ModBlocks; import de.ellpeck.naturesaura.blocks.ModBlocks;
import de.ellpeck.naturesaura.packet.PacketHandler;
import de.ellpeck.naturesaura.packet.PacketParticles;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.item.EntityItemFrame; import net.minecraft.entity.item.EntityItemFrame;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
@ -73,6 +75,9 @@ public class TileEntityPlacer extends TileEntityImpl implements ITickable {
handler.extractItem(i, 1, false); handler.extractItem(i, 1, false);
BlockPos spot = AuraChunk.getHighestSpot(this.world, this.pos, 10, this.pos); BlockPos spot = AuraChunk.getHighestSpot(this.world, this.pos, 10, this.pos);
AuraChunk.getAuraChunk(this.world, spot).drainAura(spot, 10); AuraChunk.getAuraChunk(this.world, spot).drainAura(spot, 10);
PacketHandler.sendToAllAround(this.world, this.pos, 32, new PacketParticles(pos.getX(), pos.getY(), pos.getZ(), 9));
return; return;
} }
} }

View file

@ -177,6 +177,17 @@ public class PacketParticles implements IMessage {
world.rand.nextGaussian() * 0.01F, world.rand.nextGaussian() * 0.01F,
0x5ccc30, 1F + world.rand.nextFloat() * 1.5F, 40, 0F, false, true); 0x5ccc30, 1F + world.rand.nextFloat() * 1.5F, 40, 0F, false, true);
break; break;
case 9: // Placer placing
for (int i = world.rand.nextInt(20) + 20; i >= 0; i--) {
boolean side = world.rand.nextBoolean();
float x = side ? world.rand.nextFloat() : (world.rand.nextBoolean() ? 1.1F : -0.1F);
float z = !side ? world.rand.nextFloat() : (world.rand.nextBoolean() ? 1.1F : -0.1F);
NaturesAura.proxy.spawnMagicParticle(world,
message.posX + x, message.posY + 0.1F + world.rand.nextFloat() * 0.98F, message.posZ + z,
0F, 0F, 0F,
0xad7a37, world.rand.nextFloat() + 1F, 50, 0F, true, true);
}
break;
} }
} }
}); });

View file

@ -0,0 +1,26 @@
{
"display": {
"icon": {
"item": "naturesaura:conversion_catalyst"
},
"title": {
"translate": "advancement.naturesaura.conversion_catalyst"
},
"description": {
"translate": "advancement.naturesaura.conversion_catalyst.desc"
}
},
"parent": "naturesaura:infused_materials",
"criteria": {
"catalyst": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "naturesaura:conversion_catalyst"
}
]
}
}
}
}

View file

@ -0,0 +1,26 @@
{
"display": {
"icon": {
"item": "naturesaura:flower_generator"
},
"title": {
"translate": "advancement.naturesaura.flower_generator"
},
"description": {
"translate": "advancement.naturesaura.flower_generator.desc"
}
},
"parent": "naturesaura:infused_materials",
"criteria": {
"generator": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "naturesaura:flower_generator"
}
]
}
}
}
}

View file

@ -0,0 +1,26 @@
{
"display": {
"icon": {
"item": "naturesaura:placer"
},
"title": {
"translate": "advancement.naturesaura.placer"
},
"description": {
"translate": "advancement.naturesaura.placer.desc"
}
},
"parent": "naturesaura:infused_materials",
"criteria": {
"placer": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"item": "naturesaura:placer"
}
]
}
}
}
}

View file

@ -10,7 +10,7 @@
"translate": "advancement.naturesaura.potion_generator.desc" "translate": "advancement.naturesaura.potion_generator.desc"
} }
}, },
"parent": "naturesaura:infused_materials", "parent": "naturesaura:flower_generator",
"criteria": { "criteria": {
"generator": { "generator": {
"trigger": "minecraft:inventory_changed", "trigger": "minecraft:inventory_changed",

View file

@ -65,5 +65,11 @@ advancement.naturesaura.furnace_heater=Cozy Warmth
advancement.naturesaura.furnace_heater.desc=Create an Extraneous Firestarter to heat your furnace advancement.naturesaura.furnace_heater.desc=Create an Extraneous Firestarter to heat your furnace
advancement.naturesaura.potion_generator=Lurking Powers advancement.naturesaura.potion_generator=Lurking Powers
advancement.naturesaura.potion_generator.desc=Make a Lingering Absorber for the Ritual of the Brewer to create Aura advancement.naturesaura.potion_generator.desc=Make a Lingering Absorber for the Ritual of the Brewer to create Aura
advancement.naturesaura.flower_generator=Botanistic Homicide
advancement.naturesaura.flower_generator.desc=Create a Herbivorous Absorber to create Aura
advancement.naturesaura.placer=Plop Plop Placement
advancement.naturesaura.placer.desc=Create an Imperceptible Builder to place blocks for you
advancement.naturesaura.conversion_catalyst=Not so Equivalent Exchange
advancement.naturesaura.conversion_catalyst.desc=Create a Conversion Catalyst for easy material conversion
command.naturesaura.aura.usage=/naaura <action> <amount> <range> command.naturesaura.aura.usage=/naaura <action> <amount> <range>

View file

@ -2,7 +2,7 @@
"name": "Ritual of the Brewer", "name": "Ritual of the Brewer",
"icon": "naturesaura:potion_generator", "icon": "naturesaura:potion_generator",
"category": "creating", "category": "creating",
"advancement": "naturesaura:infused_materials", "advancement": "naturesaura:flower_generator",
"pages": [ "pages": [
{ {
"type": "text", "type": "text",

View file

@ -2,7 +2,7 @@
"name": "Vegetational Increase", "name": "Vegetational Increase",
"icon": "minecraft:wheat_seeds", "icon": "minecraft:wheat_seeds",
"category": "effects", "category": "effects",
"advancement": "naturesaura:potion_generator", "advancement": "naturesaura:flower_generator",
"pages": [ "pages": [
{ {
"type": "text", "type": "text",

View file

@ -0,0 +1,21 @@
{
"name": "Imperceptible Builder",
"icon": "naturesaura:placer",
"category": "using",
"advancement": "naturesaura:infused_materials",
"pages": [
{
"type": "text",
"text": "A lot of activities require a person to be around, most of them for $(thing)placing$() blocks into the world. This, really, is a waste of personell in a time where $(aura) can work in its place. The $(item)Imperceptible Builder$() will place any blocks you supply it with for a small amount of $(aura) in return.$(p)The builder gathers the blocks for placement from a $(item)Chest$() placed on top of it."
},
{
"type": "text",
"text": "To specify which blocks it should then place them on, one needs to hang up an $(item)Item Frame$() on the builder and put the desired block inside of it. It will then place the blocks from the chest in an area of about $(thing)five blocks$().$(p)As an example, placing a piece of cobblestone into the frame and a stack of wooden planks into the chest will cause the planks to be placed on top of any cobblestone close by."
},
{
"type": "crafting",
"text": "Creating the $(item)Imperceptible Builder$()",
"recipe": "naturesaura:placer"
}
]
}

View file

@ -0,0 +1,25 @@
{
"type": "forge:ore_shaped",
"pattern": [
"CHC",
"CDC",
"CIC"
],
"key": {
"D": {
"item": "minecraft:dispenser"
},
"I": {
"item": "naturesaura:infused_iron"
},
"H": {
"item": "minecraft:hopper"
},
"C":{
"item":"minecraft:cobblestone"
}
},
"result": {
"item": "naturesaura:placer"
}
}