Jump to content

Lior Hassin

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Lior Hassin

  1. Alright I see what you mean, I will give it a try now. Thanks!
  2. Hey, I am currently working on an rpg mod. my fireball staff is spawning largefireball as the projectile when I press right click. I wonder if there is something I can change so it won’t destroy items dropped on the ground. https://github.com/liorhassin/RPG-Mod thanks in advance.
  3. Alright yeah most of the code that I was able to pull out while practicing on this first mod was either guides or inspecting the Minecraft code. I will get to work and If I will get stuck I will replay to your comment again. Thanks a lot for the help!
  4. Alright I see now, I will make sure to fix that now. Thanks!
  5. Oh sorry if I didn’t explain myself right. The animation is working I meant where should I add the event.enqueueWork() so I will make sure I update the hashmap on the server side.
  6. Sorry for the delay busy with my exams. Thank you very much for the help, Fixed all client related stuff to that one file that got Dist.client there. also its much cleaner now and easy to understand. fixing the ItemPropeties.register() if you could tell me on which file you see that problem, I couldn't find the file with ItemPropeties.register() and also has the event parameter in it so I can fix that problem. Also having issue with rendering my new arrow when it fly, will dig into it later. Again super thank you for helped me understand my issue quickly.
  7. I am trying to create a custom bow as a practice with some range weapons. The bow itself work just fine, but the pulling animation is not working. Github repository : https://github.com/liorhassin/RPG-Mod Files navigation in github that could be related to the issue: 1) main/rpgmod/rpgmod.java (I think the issue could be related to the onClientSetup function that doesn't seem to change anything/load my addCustomItemProperties) 2) main/rpgmod/util/ModItemProperties.java (Where I wrote the code to be like the classic bow from minecraft) 3) resource/assets/rpgmod/models/item/beginner_bow.json (Where I wrote the json file to describe the animation and position of the item) 4) resource/assets/rpgmod/models/item/beginner_bow_pulling_0 , 1 , 2 (all animations linked to main item parent but call different png to create the bow animation) Thanks in advance.
  8. Any recommendation on how to start the separate block code? Where to place the block code and how to import/pull all player data so I can use the capability as requirement for a recipe? Sorry for the questions I am new to modding, this is my first go. and thank you for the answer!
  9. I am working on an rpg mod with weapon leveling system. Saving the data for the weapon levels on the player as player capabilities(PlayerKnife/PlayerBroadsword files). The idea is that for warrior you have a starter knife as starting weapon. when you reach level 10 with the knife(max level) you will unlock recipe to craft broadsword which is the second tier for the warrior class. I want to find a way to block the user from crafting and using the weapon(broadsword) until he reach level 10 with the knife. I was thinking about creating a custom condition that can be implemented to the json file(for the recipe) which pulls the player capability data(knife level). And for the usability of the weapon I was thinking about creating the weapon as custom item and block the usability of the item/change the action. Searched all over the internet, most of the related topics show solutions with outdated tools/implementations. Github repository : https://github.com/liorhassin/RPG-Mod Thanks in advance.
×
×
  • Create New...

Important Information

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