mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
finish the mover cart except for textures
This commit is contained in:
parent
bc022d0baa
commit
05b61e2ccb
4 changed files with 62 additions and 0 deletions
|
@ -10,6 +10,7 @@ import net.minecraft.nbt.NBTBase;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.nbt.NBTTagList;
|
import net.minecraft.nbt.NBTTagList;
|
||||||
import net.minecraft.nbt.NBTTagLong;
|
import net.minecraft.nbt.NBTTagLong;
|
||||||
|
import net.minecraft.util.DamageSource;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
import net.minecraft.util.math.RayTraceResult;
|
import net.minecraft.util.math.RayTraceResult;
|
||||||
|
@ -79,6 +80,13 @@ public class EntityMoverMinecart extends EntityMinecart {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void killMinecart(DamageSource source) {
|
||||||
|
this.setDead();
|
||||||
|
if (this.world.getGameRules().getBoolean("doEntityDrops"))
|
||||||
|
this.entityDropItem(new ItemStack(ModItems.MOVER_MINECART), 0);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void writeEntityToNBT(NBTTagCompound compound) {
|
protected void writeEntityToNBT(NBTTagCompound compound) {
|
||||||
super.writeEntityToNBT(compound);
|
super.writeEntityToNBT(compound);
|
||||||
|
|
|
@ -72,6 +72,7 @@ item.naturesaura.infused_iron_shoes.name=Botanist's Shoes
|
||||||
item.naturesaura.effect_powder.naturesaura:plant_boost.name=Powder of Steady Growth
|
item.naturesaura.effect_powder.naturesaura:plant_boost.name=Powder of Steady Growth
|
||||||
item.naturesaura.effect_powder.naturesaura:cache_recharge.name=Powder of no Storage
|
item.naturesaura.effect_powder.naturesaura:cache_recharge.name=Powder of no Storage
|
||||||
item.naturesaura.effect_powder.naturesaura:animal.name=Powder of Chastity
|
item.naturesaura.effect_powder.naturesaura:animal.name=Powder of Chastity
|
||||||
|
item.naturesaura.mover_cart.name=Aura Attraction Cart
|
||||||
|
|
||||||
container.naturesaura.tree_ritual.name=Ritual of the Forest
|
container.naturesaura.tree_ritual.name=Ritual of the Forest
|
||||||
container.naturesaura.altar.name=Natural Altar Infusion
|
container.naturesaura.altar.name=Natural Altar Infusion
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "Aura Attraction Cart",
|
||||||
|
"icon": "naturesaura:mover_cart",
|
||||||
|
"category": "devices",
|
||||||
|
"advancement": "naturesaura:aura_bottle_end",
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "One of the problems many $(aura) researchers face is that, while it's plentiful and easy to access, it's not necessarily easy to $(thing)move around$(). For this, the $(item)Aura Attraction Cart$() was developed: Its sole purpose is to provide the ability for $(aura) to be moved around the world easily. For that, all that is required is an excess amount of $(aura) in the starting area and some $(item)rails$()."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"text": "To use the $(item)Aura Attraction Cart$(), one needs to place it on a rail. To cause it to hook on to $(aura) in the area around it and to make it able to move it around, it needs to pass a powered $(item)Activator Rail$(). It will then pick up the $(aura) around it and pull it along with it until it reaches an unpowered $(item)Activator Rail$(), at which point it will let go of the $(aura).$(p)It should be noted that, during the process of moving $(aura) in this manner, some of the excess is $(thing)$(t:| || || |_)lost$()."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "crafting",
|
||||||
|
"text": "Creating the $(item)Aura Attraction Cart$()",
|
||||||
|
"recipe": "naturesaura:mover_cart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"type": "forge:ore_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"EBE",
|
||||||
|
"SIS",
|
||||||
|
" C "
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"B": {
|
||||||
|
"type": "minecraft:item_nbt",
|
||||||
|
"item": "naturesaura:aura_bottle",
|
||||||
|
"nbt": {
|
||||||
|
"stored_type": "naturesaura:end"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"I": {
|
||||||
|
"item": "naturesaura:infused_iron"
|
||||||
|
},
|
||||||
|
"S": {
|
||||||
|
"item": "naturesaura:sky_ingot"
|
||||||
|
},
|
||||||
|
"E": {
|
||||||
|
"item": "minecraft:ender_eye"
|
||||||
|
},
|
||||||
|
"C": {
|
||||||
|
"item": "minecraft:minecart"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "naturesaura:mover_cart"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue