Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • sarxworks

sarxworks

Members
 View Profile  See their activity
  • Content Count

    7
  • Joined

    September 2, 2019
  • Last visited

    December 9, 2020

Community Reputation

0 Neutral

About sarxworks

  • Rank
    Tree Puncher

Recent Profile Visitors

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

  1. sarxworks

    Custom Trident model not rendering

    sarxworks replied to sarxworks's topic in Modder Support

    Thanks. I completely forgot Entity spawning is Server-Side
    • July 30, 2020
    • 2 replies
  2. sarxworks

    Custom Trident model not rendering

    sarxworks posted a topic in Modder Support

    Hello. Been fiddling with creating a new trident item but I've hit a hitch. I've got the item itself to launch the trident entity on right-click, however I can't get my custom model to work. I have already registered renderer and attached it to the entity already. Custom Trident Item Class: https://pastebin.com/khQLVKrG Custom Trident Entity: https://pastebin.com/vc3bjw0G Custom Trident Model: https://pastebin.com/hzsUHsU9 Custom Trident Renderer: https://pastebin.com/g0b0Wneq Entity Register Class: https://pastebin.com/t1MWyRdk Client Registry Class: https://pastebin.com/HssBJALh FYI: This is a group project so not all the code is mine. Only the Custom Trident entity, Renderer, Model, and Item are specifically my code. The others only contain references to register my code at initialization. This is a repost: I accidentally posted in the wrong forum.
    • July 29, 2020
    • 2 replies
  3. sarxworks

    Simple Summon Lightning on Right Click with Sword 1.12.2

    sarxworks replied to sarxworks's topic in Modder Support

    Alright I've gotten the lightning to work, it only shows in the sky however but I did that purposely by removing one of the lines of code. Thanks to everybody who gave their help
    • September 5, 2019
    • 8 replies
  4. sarxworks

    Simple Summon Lightning on Right Click with Sword 1.12.2

    sarxworks replied to sarxworks's topic in Modder Support

    I've taken a MOOC class over the summer so I understand the basics of the Java like OOP, Basic methods, modifiers, flow statements and the other fundamentals. If I need to know more I'm more than willing to learn. I figured that after a while because I was wondering what purpose the ItemStack had in the method. Alright I will try that.
    • September 5, 2019
    • 8 replies
  5. sarxworks

    Simple Summon Lightning on Right Click with Sword 1.12.2

    sarxworks replied to sarxworks's topic in Modder Support

    Alright so I first realized that one of the value "worldIn" was a mistake by me. I meant to use "world". I have changed the code around and used world.isRemote however I'm still not getting a response from right clicking. I'm not worrying too much about cleaning up the code as of right now, just trying to test things out. This is what I have: I even tried referencing the class in the main class to see if the event was not initializing but no change. Is it that I did not use the @Override annotation or no?
    • September 5, 2019
    • 8 replies
  6. sarxworks sarxworks joined the community September 2, 2019
  7. sarxworks

    Simple Summon Lightning on Right Click with Sword 1.12.2

    sarxworks posted a topic in Modder Support

    Hello All :), I am relatively new to minecraft modding so I might be a bit unsure about certain things. I have a basic grasp on Java programming so I would say I somewhat understand how the code works and I'm constantly trying to learn but I've hit a snag. Basically I'm trying to make a basic sword that fires lightning bolts on right click however I can't seem to get the code to work. This is currently what I'm using: public BoltSword(String unlocalizedName, ToolMaterial material) { super(unlocalizedName, material); } public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { if (worldIn.isRemote) { RayTraceResult result = playerIn.rayTrace(100, 1F); int x = result.getBlockPos().getX(); int y = result.getBlockPos().getY(); int z = result.getBlockPos().getZ(); EntityLightningBolt lightning = new EntityLightningBolt(worldIn, x, y, z, false); worldIn.addWeatherEffect(lightning); } return new ActionResult(EnumActionResult.SUCCESS, itemStackIn); I've tried searching endless posts and this was the furthest I've gotten however it still won't work. I will appreciate any help given and I'm open to any suggestions you guys may recommend me. Thanks!
    • September 2, 2019
    • 8 replies
  • All Activity
  • Home
  • sarxworks
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community