Jump to content

Casa Nuestra

Members
  • Posts

    9
  • Joined

  • Last visited

Casa Nuestra's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thank you very much! This worked perfectly.
  2. Hello, I have been trying to implement a new mob to minecraft, but I can't get it to drop my custom item. I have tried searching in vanilla examples, but nothing. Thanks in advance. Here is the loot table in resources/data/learningmod/loot_tables/entity/flying_monkey.json { "type": "minecraft:entity", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "learningmod:purpy_totem" } ] } ] } And here is the overrided function: @Override protected ResourceLocation getDefaultLootTable() { return new ResourceLocation(LearningMod.MOD_ID, LearningMod.MOD_ID + "loot_tables/entity/flying_monkey"); }
  3. Sorry about that. For some reason I didn't see that. Thank you.
  4. Thanks, but how would I make the keybind trigger my teleport? I have the code for teleporting, but where do I put it? Thanks.
  5. I have been trying to make a "enderman helmet" that allows you to teleport wherever you are looking upon right click, but I can't seem to find the right method to do this in. Any help is appreciated.
  6. Nvm fixed it by using the Entity parameter in inventoryTick. Thank anyways. Also sorry for posting here i'm new to this.
  7. What I meant was in the item class, I overrided a method called inventoryTick, which is called every tick the item is in the player's inventory.
  8. I have been trying to make an item that hurts you if it's in your inventory, but how would I apply the server side parts to inventoryTick. I have also been using Minecraft.getInstance().player. Any help would be appreciated.
  9. Hello, I have been learning to mod minecraft but after a bit of following a tutorial, my entity, a gorilla, does not spawn in the world. This is the code I used for 1.19.3. { "type": "forge:add_spawns", "biomes": "#namespace:is_overworld", "spawners": { "type": "tutorialmod:gorilla", "weight": 150, "minCount": 2, "maxCount": 5 } } Any help is appreciated. Thanks. EDIT: fixed it my mod id was not tutorialmod.
×
×
  • Create New...

Important Information

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