Jump to content

Search the Community

Showing results for 'require tool' in topics.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Minecraft Forge
    • Releases
    • Support & Bug Reports
    • Suggestions
    • General Discussion
  • Mod Developer Central
    • Modder Support
    • User Submitted Tutorials
  • Non-Forge
    • Site News (non-forge)
    • Minecraft General
    • Off-topic
  • Forge Mods
    • Mods

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


XMPP/GTalk


Gender


URL


Location


ICQ


AIM


Yahoo IM


MSN Messenger


Personal Text

  1. How would i go about creating a new tool type? I'm specifically trying to make a tool that would function like a pickaxe but only for certain blocks. Thanks. Edit: Use ToolItem and use a Set variable for the effectiveBlocksIn parameter (create the variable before the ToolItem, not during.)
  2. Hello, I've set my mod block harvest tool to pickaxe and level to 1, which should cause it to drop nothing when mined with a wooden pickaxe. However this not only does not take place, but I'm even able to harvest the block by mining it with a bare hand. Code details Block registration: public static final RegistryObject<Block> COPPER_ORE = BLOCKS.register("copper_ore", MetalOreBlock::new); MetalOreBlock class: package ... import ... public class MetalOreBlock extends Block { public MetalOreBlock() { super(Block.Properties .create(Material.ROCK) .sound(SoundType.STONE) .hardnessAndResistance(3.0f, 3.0f) .harvestLevel(1) .harvestTool(ToolType.PICKAXE) ); } } How to fix it? Thanks in advance!
  3. Specifically, their mirror images are the middle of the pixel, not the middle of the grid. Minecraft textures are 2x2 in size, so if I click on the left side of the panel, only one pixel shows because the middle part of the supposed symmetry is a pixel not the grid. If the mirror was grid based rather than pixels, it will paint on both sides. I can't seem to find the settings for this, Should I download a plugin or use a different program entirely, still the same case on krita.
  4. I want to craft a tool which has a enchant it self. e.g a pickaxe has EFFICIENCY
  5. While I was creating a mod, I noticed that my mod's blocks harvest levels were all being set to zero, despite me defining them in the block's properties. So I did a clean install of the latest MDK (Forge 1.16.1-32.0.39), and made a quick test just to see if something else was causing it, but I haven't been able to figure out what's making this happen yet. Here's what the code from my testing looks like: @Mod("examplemod") public class ExampleMod { // Directly reference a log4j logger. private static final Logger LOGGER = LogManager.getLogger(); private static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, "examplemod"); public static final RegistryObject<Block> HARD_BLOCK = BLOCKS.register("coolblockname", () -> new Block( Block.Properties.create(Material.ROCK) .harvestLevel(3) .harvestTool(ToolType.PICKAXE) .hardnessAndResistance(2.5F, 10F) )); public ExampleMod() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); BLOCKS.register(bus); MinecraftForge.EVENT_BUS.register(this); } } This is what the loot table for the block looks like: { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:carrot" } ], "conditions": [ { "condition": "minecraft:survives_explosion" } ] } ] } Lastly, here's a quick video of me showing that the block does still drop in game (despite the wrong mining level/tool) If there's anything else that I can include to help diagnose the issue please let me know! Thanks
  6. On the latest forge I have noticed that my diamond tools (likely to be others) are not mending whilst you have the villager trading screen open. Once the UI closes, the tool health updates but not whilst you have the screen open. Happily provide more details if required.
  7. What would I need to change/add to make a custom 1.12.2 tool enchantable? Or where could I find the file in an existing mod to change its enchantability/make it enchantable
  8. I want to get the tool used in a BreakEvent or HarvestDropsEvent, but I'm not sure how to do this. Usually the tool used is in the main hand, so I could use getHeldItemMainhand(), but sometimes the offhand can also break blocks(Modded Items like staffs can do it). So how do I know which hand was used to break the block?
  9. I'm new on modding and i have a question. I'm trying to add an enchantment to a custom tool by default , I've already done it but I think its not the best way. Here is my code: package littlemonge.rpgcraft.item.tools.icite; import java.util.List; import javax.annotation.Nullable; import net.minecraft.client.util.ITooltipFlag; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.enchantment.Enchantments; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.IItemTier; import net.minecraft.item.ItemGroup; import net.minecraft.item.ItemStack; import net.minecraft.item.PickaxeItem; import net.minecraft.nbt.CompoundNBT; import net.minecraft.nbt.ListNBT; import net.minecraft.util.NonNullList; import net.minecraft.util.text.ITextComponent; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; public class IcitePickaxeItem extends PickaxeItem { public IcitePickaxeItem(IItemTier tier, int attackDamageIn, float attackSpeedIn, Properties builder, String name) { super(tier, attackDamageIn, attackSpeedIn, builder); this.setRegistryName(name); } @Override public void fillItemGroup(ItemGroup group, NonNullList<ItemStack> items) { super.fillItemGroup(group, items); for (ItemStack stack : items) { if (stack.getItem().equals(this)) { stack.addEnchantment(Enchantments.SILK_TOUCH, 1); } } } public void onCreated(ItemStack stack, World worldIn, PlayerEntity playerIn) { addSilkTouch(stack); } public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) { addSilkTouch(stack); super.inventoryTick(stack, worldIn, entityIn, itemSlot, isSelected); } @OnlyIn(Dist.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) { addSilkTouch(stack); super.addInformation(stack, worldIn, tooltip, flagIn); ItemStack.addEnchantmentTooltips(tooltip, getEnchantments(stack)); } public static ListNBT getEnchantments(ItemStack stack) { CompoundNBT compoundnbt = stack.getTag(); return compoundnbt != null ? compoundnbt.getList("StoredEnchantments", 10) : new ListNBT(); } private void addSilkTouch(ItemStack stack) { if (!stack.isEnchanted()) { stack.addEnchantment(Enchantments.SILK_TOUCH, 1); } else { if (EnchantmentHelper.getEnchantments(stack).get(Enchantments.SILK_TOUCH) == null) { stack.addEnchantment(Enchantments.SILK_TOUCH, 1); } } } } Thanks in advance, regards.
  10. Hey all, I'm trying to find a way to decrease the interval in which onItemUse() is fired on an item. For my application, I'm trying to increase the use time of my overwritten vanilla shears on a certain block that yields drops after you shear it. I want it to shear as fast as someone would punch out a bunch of tall grass. Here's my code in attempt to set the swinging time to zero when detecting the block being right clicked in the RightClickBlock event, sadly it doesn't work: @SubscribeEvent public void farmBlock(PlayerInteractEvent.RightClickBlock event) { if(event.getPlayer().getHeldItem(event.getHand()).getItem().equals(Items.SHEARS) && event.getWorld().getBlockState(event.getPos()).equals(RegistryHandler.MY_BLOCK.get().getDefaultState())){ System.out.println("My block was right clicked!"); //Testing purposes. event.getPlayer().swingProgressInt = 1; } } I also have code in the onItemUse() function in my new vanilla shears class that allows the player to shear my block (turns it into another block) much like using an axe to right click will shave wood. Everything works the way that it should, I just want to decrease the time in which the item is used. Like said before, I can change the shears however I want, as long as this works. Any pointers? Thanks a ton!
  11. I cannot for the love of me figure out how the new objectregister system works. Been scratching my head at this for a week. The above error hi-lites: JemPickaxe::new in the 3rd method. public class JemPickaxes { public static final JemRegistry<Item> PICKAXE = new JemRegistry<>(ForgeRegistries.ITEMS, JemCore.MOD_ID); public static void init() { PICKAXE.register(FMLJavaModLoadingContext.get().getModEventBus()); } public static RegistryObject<Item> OBSIDIAN = PICKAXE.register("obsidian_pickaxe", JemPickaxe::new);; /**public static <OBSIDIAN extends PickaxeItem> OBSIDIAN PickaxeProperties(String item, IItemTier tier, int damage, float speed, Properties properties) *{ * PickaxeProperties("obsidian_pickaxe", ItemTier.NETHERITE, 1, -2.8F, new Item.Properties().group(JemPickaxe.TOOLS)); * * return JemPickaxes.OBSIDIAN = PickaxeProperties("obsidian_pickaxe", ItemTier.NETHERITE, 1, -2.8F, properties); *} * *public static RegistryObject<Item> TEST() *{ * return PICKAXE.register("test_pickaxe", JemPickaxe::new); *} */ } This is what my JemPickaxe class looks like: public class JemPickaxe extends PickaxeItem { public static final ItemGroup TOOLS = new ItemGroup("tools") { @Override public ItemStack createIcon() { return new ItemStack(JemPickaxes.OBSIDIAN.get()); } }; public JemPickaxe(IItemTier tier, int attackDamage, float attackSpeedIn) { super(tier, attackDamage, attackSpeedIn, new Item.Properties().group(TOOLS)); //JemPickaxe.PickaxeProperties(tier, attackDamage, attackSpeedIn, new Item.Properties().group(TOOLS)); } /**public static void PickaxeProperties(String string, ItemTier netherite, int i, float f, Properties group) { * *} * * * public static void OBSIDIAN(IItemTier tier, int attackDamage, float attackSpeedIn) { * super(ItemTier.NETHERITE, 1, -2.8F, new Item.Properties().group(TOOLS)); * JemPickaxe.PickaxeProperties(ItemTier.NETHERITE, 1, -2.8F, new Item.Properties().group(TOOLS)); * } */ } The error only resolves when I remove the parameters from public JemPickaxe(...) so that the brackets are empty and when I change the extend from "Pickaxeitem" to just "Item". Am I completely wrong about how I'm going about this or am I just adding the parameters incorrectly to the new object (Obsidian pickaxe) itself?
  12. I am trying to add a tool to my mod and i do not know how to add durability to it. Minecraft Forge 1.15.2 Code for the tool: event.getRegistry().register(new Item(new Item.Properties().group(ItemGroup.TOOLS).addToolType(net.minecraftforge.common.ToolType.PICKAXE, 3)).setRegistryName("infinity_pickaxe"));
  13. How can I change which type of tool (Shovel, Pickaxe, Axe, etc. ) breaks a particular block the fastests or at all. I can change the Hardness or resistance, but I don't know the rest.
  14. Hello. I would like to have a block that has a variable hardness and tool requirement based on an item contained within the block's inventory. While I have been able to adjust the block's hardness in this way, I have not been able to figure out how to change the tool requirements. So far, I have: A block with a tile entity. The tile entity can contain an item that increases the block's hardness The item can be enchanted to further increase the block's hardness What I would like to have: As the block's hardness increases (as a result of the item and enchantment), so does the tool level needed to break it (none -> wood -> ... -> diamond) Can anybody help with this?
  15. I am attempting to add a few items to the game as a learning exercise to get myself accustomed to modding. The issue I am running into appears to be that my textures are not properly linked to my items, I know that the models are linking properly, as they are the flat missing texture model vs the missing texture cube. What confuses me is that this issue only seems to show up with the tool Item classes. (AxeItem, SwordItem, ShovelItem, etc.) My understanding was that the the registry name informed the game where to look for the necessary resources. Am I misunderstanding how this works? I've included a snippet here, as well as a link to the project on GitHub. event.getRegistry().registerAll( /*Items*/ ItemList.prismarine_quartz_shard = new Item(new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_quartz_shard")), /*Tools*/ ItemList.prismarine_and_steel = new PrismarineAndSteel(new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_and_steel")), ItemList.prismarine_axe = new AxeItem(ToolMaterialList.prismarine, -1.0f, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_axe")), ItemList.prismarine_pickaxe = new PickaxeItem(ToolMaterialList.prismarine, -2, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_pickaxe")), ItemList.prismarine_shovel = new ShovelItem(ToolMaterialList.prismarine, -1.0f, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_shovel")), ItemList.prismarine_sword = new SwordItem(ToolMaterialList.prismarine, 1, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_sword")), ItemList.prismarine_hoe = new HoeItem(ToolMaterialList.prismarine, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_hoe")), /*Block Items*/ ItemList.prismarine_quartz_block = new BlockItem(BlockList.prismarine_quartz_block, new Item.Properties().group(abyssal)).setRegistryName(BlockList.prismarine_quartz_block.getRegistryName()) ); https://github.com/DJKnarnia/Abyssal-Minecraft-Mod
  16. Is there anyway to check if the player is holding a tool by its type type? e.g is the player holding a pickaxe? This could be any pickaxe. Thank you for your help.
  17. Hey guys, So I have a biome, and I want it to be of type forest. However, I also want the grass and leaves in the biome to be orange, which is not the default for forest biomes. is there any way I can override the natural grass color of a biome type? In addition, I have written this method for class DrillItem that will allow it to perform a function similar to stripping wood for ores, that also spawns an item at the player using the block: protected static final Map<Block, Block> ORE_DEPLETION_MAP = (new Builder<Block, Block>()) .put(Blocks.COAL_ORE, BlockList.DEPLETED_COAL_ORE.get()) .put(BlockList.DEPLETED_COAL_ORE.get(), BlockList.TWICE_DEPLETED_COAL_ORE.get()) .put(BlockList.TWICE_DEPLETED_COAL_ORE.get(), BlockList.THRICE_DEPLETED_COAL_ORE.get()) .put(BlockList.THRICE_DEPLETED_COAL_ORE.get(), Blocks.STONE) .put(Blocks.IRON_ORE, BlockList.DEPLETED_IRON_ORE.get()) .put(BlockList.DEPLETED_IRON_ORE.get(), BlockList.TWICE_DEPLETED_IRON_ORE.get()) .put(BlockList.TWICE_DEPLETED_IRON_ORE.get(), BlockList.THRICE_DEPLETED_IRON_ORE.get()) .put(BlockList.THRICE_DEPLETED_IRON_ORE.get(), Blocks.STONE) .put(Blocks.GOLD_ORE, BlockList.DEPLETED_GOLD_ORE.get()) .put(BlockList.DEPLETED_GOLD_ORE.get(), BlockList.TWICE_DEPLETED_GOLD_ORE.get()) .put(BlockList.TWICE_DEPLETED_GOLD_ORE.get(), BlockList.THRICE_DEPLETED_GOLD_ORE.get()) .put(BlockList.THRICE_DEPLETED_GOLD_ORE.get(), Blocks.STONE) .put(Blocks.LAPIS_ORE, BlockList.DEPLETED_LAPIS_ORE.get()) .put(BlockList.DEPLETED_LAPIS_ORE.get(), BlockList.TWICE_DEPLETED_LAPIS_ORE.get()) .put(BlockList.TWICE_DEPLETED_LAPIS_ORE.get(), BlockList.THRICE_DEPLETED_LAPIS_ORE.get()) .put(BlockList.THRICE_DEPLETED_LAPIS_ORE.get(), Blocks.STONE) .put(Blocks.REDSTONE_ORE, BlockList.DEPLETED_REDSTONE_ORE.get()) .put(BlockList.DEPLETED_REDSTONE_ORE.get(), BlockList.TWICE_DEPLETED_REDSTONE_ORE.get()) .put(BlockList.TWICE_DEPLETED_REDSTONE_ORE.get(), BlockList.THRICE_DEPLETED_REDSTONE_ORE.get()) .put(BlockList.THRICE_DEPLETED_REDSTONE_ORE.get(), Blocks.STONE) .put(Blocks.EMERALD_ORE, BlockList.DEPLETED_EMERALD_ORE.get()) .put(BlockList.DEPLETED_EMERALD_ORE.get(), BlockList.TWICE_DEPLETED_EMERALD_ORE.get()) .put(BlockList.TWICE_DEPLETED_EMERALD_ORE.get(), BlockList.THRICE_DEPLETED_EMERALD_ORE.get()) .put(BlockList.THRICE_DEPLETED_EMERALD_ORE.get(), Blocks.STONE) .put(Blocks.DIAMOND_ORE, BlockList.DEPLETED_DIAMOND_ORE.get()) .put(BlockList.DEPLETED_DIAMOND_ORE.get(), BlockList.TWICE_DEPLETED_DIAMOND_ORE.get()) .put(BlockList.TWICE_DEPLETED_DIAMOND_ORE.get(), BlockList.THRICE_DEPLETED_DIAMOND_ORE.get()) .put(BlockList.THRICE_DEPLETED_DIAMOND_ORE.get(), Blocks.STONE) .put(BlockList.MOD_GEM_ORE.get(), BlockList.DEPLETED_MOD_GEM_ORE.get()) .put(BlockList.DEPLETED_MOD_GEM_ORE.get(), Blocks.STONE) .build(); protected static final Random rng = new Random(); protected static final Map<Block, Supplier<ItemStack>> DEPLETION_DROPS_MAP = (new Builder<Block, Supplier<ItemStack>>()) .put(Blocks.COAL_ORE, () -> new ItemStack(Items.COAL, 1)) .put(BlockList.DEPLETED_COAL_ORE.get(), () -> new ItemStack(Items.COAL, 1)) .put(BlockList.TWICE_DEPLETED_COAL_ORE.get(), () -> new ItemStack(Items.COAL, 1)) .put(BlockList.THRICE_DEPLETED_COAL_ORE.get(), () -> new ItemStack(Items.COAL, 1)) .put(Blocks.IRON_ORE, () -> new ItemStack(ItemList.IRON_SLAG.get(), 1)) .put(BlockList.DEPLETED_IRON_ORE.get(), () -> new ItemStack(ItemList.IRON_SLAG.get(), 1)) .put(BlockList.TWICE_DEPLETED_IRON_ORE.get(), () -> new ItemStack(ItemList.IRON_SLAG.get(), 1)) .put(BlockList.THRICE_DEPLETED_IRON_ORE.get(), () -> new ItemStack(ItemList.IRON_SLAG.get(), 1)) .put(Blocks.GOLD_ORE, () -> new ItemStack(ItemList.GOLD_SLAG.get(), 1)) .put(BlockList.DEPLETED_GOLD_ORE.get(), () -> new ItemStack(ItemList.GOLD_SLAG.get(), 1)) .put(BlockList.TWICE_DEPLETED_GOLD_ORE.get(), () -> new ItemStack(ItemList.GOLD_SLAG.get(), 1)) .put(BlockList.THRICE_DEPLETED_GOLD_ORE.get(), () -> new ItemStack(ItemList.GOLD_SLAG.get(), 1)) .put(Blocks.LAPIS_ORE, () -> new ItemStack(Items.LAPIS_LAZULI, MathHelper.nextInt(rng, 4, 9))) .put(BlockList.DEPLETED_LAPIS_ORE.get(), () -> new ItemStack(Items.LAPIS_LAZULI, MathHelper.nextInt(rng, 4, 9))) .put(BlockList.TWICE_DEPLETED_LAPIS_ORE.get(), () -> new ItemStack(Items.LAPIS_LAZULI, MathHelper.nextInt(rng, 4, 9))) .put(BlockList.THRICE_DEPLETED_LAPIS_ORE.get(), () -> new ItemStack(Items.LAPIS_LAZULI, MathHelper.nextInt(rng, 4, 9))) .put(Blocks.EMERALD_ORE, () -> new ItemStack(Items.EMERALD, 1)) .put(BlockList.DEPLETED_EMERALD_ORE.get(), () -> new ItemStack(Items.EMERALD, 1)) .put(BlockList.TWICE_DEPLETED_EMERALD_ORE.get(), () -> new ItemStack(Items.EMERALD, 1)) .put(BlockList.THRICE_DEPLETED_EMERALD_ORE.get(), () -> new ItemStack(Items.EMERALD, 1)) .put(Blocks.DIAMOND_ORE, () -> new ItemStack(Items.DIAMOND, 1)) .put(BlockList.DEPLETED_DIAMOND_ORE.get(), () -> new ItemStack(Items.DIAMOND, 1)) .put(BlockList.TWICE_DEPLETED_DIAMOND_ORE.get(), () -> new ItemStack(Items.DIAMOND, 1)) .put(BlockList.THRICE_DEPLETED_DIAMOND_ORE.get(), () -> new ItemStack(Items.DIAMOND, 1)) .put(Blocks.REDSTONE_ORE, () -> new ItemStack(Items.REDSTONE, MathHelper.nextInt(rng, 4, 5))) .put(BlockList.DEPLETED_REDSTONE_ORE.get(), () -> new ItemStack(Items.REDSTONE, MathHelper.nextInt(rng, 4, 5))) .put(BlockList.TWICE_DEPLETED_REDSTONE_ORE.get(), () -> new ItemStack(Items.REDSTONE, MathHelper.nextInt(rng, 4, 5))) .put(BlockList.THRICE_DEPLETED_REDSTONE_ORE.get(), () -> new ItemStack(Items.REDSTONE, MathHelper.nextInt(rng, 4, 5))) .put(BlockList.MOD_GEM_ORE.get(), () -> new ItemStack(ItemList.MOD_GEM.get(), 1)) .put(BlockList.DEPLETED_MOD_GEM_ORE.get(), () -> new ItemStack(ItemList.MOD_GEM.get(), 1)) .build(); . . . public ActionResultType onItemUse(ItemUseContext context) { World world = context.getWorld(); BlockPos blockpos = context.getPos(); BlockState blockstate = world.getBlockState(blockpos); Block block = ORE_DEPLETION_MAP.get(blockstate.getBlock()); if (block != null && this.canHarvestBlock(blockstate)) { PlayerEntity playerentity = context.getPlayer(); world.playSound(playerentity, blockpos, SoundEvents.ITEM_AXE_STRIP, SoundCategory.BLOCKS, 1.0F, 1.0F); if (!world.isRemote) { world.setBlockState(blockpos, block.getDefaultState().with(RotatedPillarBlock.AXIS, blockstate.get(RotatedPillarBlock.AXIS)), 11); if (playerentity != null) { if(DEPLETION_DROPS_MAP.get(blockstate.getBlock()) != null) { Supplier<ItemStack> sup = DEPLETION_DROPS_MAP.get(blockstate.getBlock()); world.addEntity(new ItemEntity(world, playerentity.getPosition().getX(), playerentity.getPosition().getY(), playerentity.getPosition().getZ(), sup.get())); } context.getItem().damageItem(1, playerentity, (player) -> { player.sendBreakAnimation(context.getHand()); }); } } return ActionResultType.SUCCESS; } else { return ActionResultType.PASS; } } Unfortunately, when I tested the method in the world it did not work, The block was not changed to the value it is mapped to in ORE_DEPLETION_MAP, nor did an ItemStack spawn. What am I doing wrong?
  18. Hi, i am new in modding, and when I try to run the example mod in eclipse I have this error message: 'launching runClient' has encoutered a problem. Launch configuration runClient references non-existing project VE Project (VE Project is the name of my mod folder). Would I have the same problem when I will start running my own mod or this is just happening because it's the example mod ? thanks for your help.
  19. I'm trying to make some blocks drop something else if mined with my custom tool - hammer Which blocks and what they drop with the hammer is generated dynamically when starting the game (based on config) When mined without the hammer, they drop their normal drops I've tried modifying loot tables in LootTableLoadEvent, but only vanilla loot tables go through there... Is there any other way?
  20. I am working on a mod and i need help creating a custom tool.
  21. I'm trying to make it so that my modded block "ruby_block" is harvestable with an iron pickaxe or above, amd i believe it is done like this? event.getRegistry().register(new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(5.0f, 6.0f).sound(SoundType.METAL).harvestLevel(2).harvestTool(null)).setRegistryName("ruby_block")); and i think something must replace null for it to work properly? what would go there? Thanks for helpin
  22. So I have a Entity Designed that i want to pass to it another Blocks POS. I know i could do this by doing a search in the tick portion of the block...but instead i want to pass to it when someone leftClicks with a specific tool in their hand on the target and right clicks on the Entity with the tool...then i wasnt to pass an instance of that block into the container of my TileEntity so that i can start removing stuff from it...can someone point me in the right direction? thanks. WardEnscriber- Class used to left click on the Mana_Stone block that houses the Mana_StoneTile class and get an instance of such. V Mana_Stone - Class that hosts the Mana_StoneTile Class...i want to get the instance of this block and store it in memory of an instance of the WardEnscriber... WardEnscriber - the tool Class used to right click...and depart the instance of a Mana_StoneTile into the MCM_Tile class. V MCM_Block Class...the block that hosts the MCM_Tile Class... I want to right click on this and send the Value stored in the WardEnscriber into the TileEntity Class https://github.com/Cleardragonf/AsuraMagica
  23. Greetings, I am trying to disable the recipes for all vanilla tools (wooden axe, stone sword, diamond shovel etc.). To accomplish this I am currently specifying my own .json files that are named after those tools (wooden_axe.json, stone_sword.json, etc) and I'm putting them under assets/data/minecraft/recipes/. This does not disable any of the recipes for the vanilla items however and the new recipes I specify in the .json files are not working either. It seems to work for some vanilla blocks where I was able to override the crafting table and the diamond block recipe, but not the furnace, using this method. I have attached the two .json files I have been testing with. The diamond_block.json successfully overrides the diamond block recipe, the furnace.json does not work. Is there anything I am missing about overriding vanilla recipes? diamond_block.json furnace.json
×
×
  • Create New...

Important Information

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