Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About BunnYx

  • Rank
    Tree Puncher
  1. Update, well i managed to actually add the item to the entities hand, as poopoodice mentioned the model i did more digging and it turns out i needed a few lines of code there, i am now able to add items to the mainhand as well as the offhand, however for the others aka Armor i assume i would need something else in the model class. Implemented IHasArm for the hands though. Not sure how i'd go about the armor, but regardless with the armor i will most likely just model all my entities in blockbench with the armor already on there since some models will be different sizes so i think that w
  2. Here you go, https://pastebin.com/BTMRQhGS
  3. From looking more onInitialSpawn seems to be the case, although whenever I try to override it alongside the renders of the item the game simply crashes upon loading in the world with this log. (Doing by summoning the entity only) Updated Entity Class : https://pastebin.com/D1kZCm6H lastest.log : https://pastebin.com/CfhZ39yS Render Class : No changes
  4. Yeah but without actually doing the difficulty setting I have no idea how to do any of the item setting if I'm being completely honest. setEquipmentBasedOnDifficulty is called from MobEntity , and by looking through that I do not see anything that I should be using. I can't paste any of the original code here but I'm very sure you know exactly what it looks like. I tried many discord forge modding servers and nobody was able to help. This is pretty much my last resort 🤷‍♂️ Wasted my whole day today playing around with Minecraft's original code to no avail.
  5. Alright i hope this fixed the issue, i will upload the classes once more with the code that i tried to use in order to get my original question to work. Entity Renderer : https://pastebin.com/pVqqugcn Entity Class : https://pastebin.com/sZyu0xex If anything else is needed please let me know, although for holding an item I'm pretty sure that these two classes are all that you need in order to do so. Sorry for any inconveniences as I am ned to modding and thank you for your time.
  6. I have updated to 1.16.4 like you said and the latest mappings, for your 1. I have no idea what you mean, since this is my very own mod package under my username. Also for 3. I have taken the code out because it was doing nothing and not giving me any errors anyways but thought id specify the closest thing I probably got to with my issue. ` this.addLayer(new HeldItemLayer(this));` <-- This was under in my builder super().
  7. Managed to make a hostile entity, however the item's, well let's just say, no dice. Found pretty much code that led me nowhere, searched through ZombieEntity, PillagerEntity and AbstractSkeletonEntity Classes. *Entity Class:* https://pastebin.com/Kc03YVt7 *Entity Renderer:* https://pastebin.com/FTP9G3kn Tried using this in my entity class: `@Override protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty) { this.setItemStackToSlot(EquipmentSlotType.MAINHAND, new ItemStack(Items.DIAMOND_SWORD)); ` } And this in my entity render class:
  8. Alright well thank you for clearing it up at least.
  9. Hi I'm just wondering if there is a thing where custom items would take up more than 1 inventory slot? For example, 1x2 inventory slots. Would I have to make an entirely custom inventory? Can't find this anywhere so I'm clueless sorry!
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.