Jump to content

bouwmeester2003

Members
  • Posts

    66
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

bouwmeester2003's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. i have a new computer and setting up forge now but it won't work it says it's done but it's not importet minecraft and everything could someone help me i'm using for it jdk 1.8 in intelij idea
  2. i did it and it came sort of cool out when you shoot the arrow it disappears from you're inventory when you pic it up it changes to an normal arrow
  3. so i'm trying to make an custom arrow i'm in the registering part now but can't seem to figure out how it works. my item: package com.CloudyProductions.DreamMod.heaven.items; import com.CloudyProductions.DreamMod.Main; import com.CloudyProductions.DreamMod.init.ItemInit; import com.CloudyProductions.DreamMod.util.IHasModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.item.ItemArrow; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class CloudArrow extends ItemArrow implements IHasModel { public CloudArrow(String name, CreativeTabs tab) { setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); setMaxStackSize(64); ItemInit.ITEMS.add(this); } public EntityArrow makeTippedArrow(World world, ItemStack itemstack, EntityLivingBase shooter) { return new com.CloudyProductions.DreamMod.heaven.entitys.CloudArrow(world, shooter); } @Override public void registerModels() { Main.proxy.registerItemRendere(this, 0, "inventory"); } } the arrow entity: package com.CloudyProductions.DreamMod.heaven.entitys; import com.CloudyProductions.DreamMod.init.ItemInit; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumParticleTypes; import net.minecraft.world.World; public class CloudArrow extends EntityArrow { public CloudArrow(World worldIn) { super(worldIn); } public CloudArrow(World worldIn, EntityLivingBase shooter) { super(worldIn, shooter); } @Override public void onUpdate() { super.onUpdate(); if (this.world.isRemote && !this.inGround) { this.world.spawnParticle(EnumParticleTypes.CLOUD, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]); } } @Override public ItemStack getArrowStack() { return new ItemStack(ItemInit.CLOUD_ARROW); } @Override public void arrowHit(EntityLivingBase living) { super.arrowHit(living); if (living != shootingEntity) { world.createExplosion(shootingEntity, living.posX, living.posY, living.posZ, 4.0F, true); } } } the render entity: package com.CloudyProductions.DreamMod.heaven.entitys; import com.CloudyProductions.DreamMod.Reference; import com.CloudyProductions.DreamMod.heaven.items.Cloud; import net.minecraft.client.renderer.entity.RenderArrow; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderCloudArrow extends RenderArrow<CloudArrow> { public static final ResourceLocation res = new ResourceLocation(Reference.MODID, "textures/entitys/cloud_arrow.png"); public RenderCloudArrow(RenderManager rm) { super(rm); } @Override public ResourceLocation getEntityTexture(CloudArrow entity) { return res; } } but how can i register this trying to do this EntityRegistry.registerModEntity(CloudArrow.class, new RenderCloudArrow()); but i need and RenderManager
  4. what i did i've deleted my old worlds and created an new one
  5. else the system doesn't work and i'm gonna give it up
  6. think i maybe have it used cloud_block but in the lang file i use for that block block_cloud
  7. what peace of code do you need the problem is with recipes and you don't need to code recipes i think it maybe has to to with registering but the crazy thing is registers the recipe but you can't craft it i've just updated my forge and re setupdecompworkspace so maybe it works now
  8. what do you want i'm making a recipe as the documentation says it scans thru assets/modid/recipes for recipes so i made there the file cloud.json with the recipe in it but it doesn't work no error at all
  9. the json file is: { "type": "minecraft:crafting_shaped", "pattern": [ "#" ], "key": { "#": { "item": "dreammod:block_cloud", "data": 1 } }, "result": { "item": "dreammod:cloud", "count": 9 } }
  10. in the log under registering recipes it says [15:48:13] [Server thread/TRACE] [FML]: Registry: 443 dreammod:cloud net.minecraft.item.crafting.ShapedRecipes@41719f09
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.