Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Elrol_Arrowsend

Members
  • Joined

  • Last visited

Everything posted by Elrol_Arrowsend

  1. I am working on a block that when placed in a custom machine can allow the player to select blocks to change how the block acts in the world. My issue is how i would be able to get the block to store the chosen blocks. I have a tile entiry for the block for when it is placed and what not. Do i use nbt or some other method. Any help is welcome
  2. I am trying to have a file that stores the levels of different skills. Currently i am using a config, and when i change the config the skills change in game and do what they should. However i cant seem to find a way to change them in my code, so that when a certain milestone is reached it adds a level to the current one. Is there another way to save to a file and load it into the mod so that the player has the ability to use their skills?
  3. Im trying to get my encahnted vanilla bow to shoot arrows that apply a potion effect when they hit an entity. I know on swords i can use events. Is there an event for when an entity gets hit by an enchanted arrow/bow?
  4. btw: You should get off the internet and grab a creeper plushie because you're 7 years old. I have a creeper plushie, but I am 22....my mom gave it to me for Christmas
  5. My understanding of particles are that they are entities and just like entities and blocks the textures are rendered client side but spawned server side. If anyone has a good tutorial for this or the location if the vanilla particle spawning that would be great
  6. How would i spawn it using a packet. The tut said to spawn it server side and render it client side so other players can see still
  7. I have attempted to spawn particles into the world using a tutorial, however it wont generate the particles in the world on the entity that has my custom potion effect. here is my bit of code in the EventHandler for LivingUpdateEvent: any help will be welcomed
  8. oddly enough, once I made the enchant apply the potion effect, then guess what, it works. so yeah. nvm on all this
  9. I am going to make a potion as i have said and the damage is the sword or weapon the enchant will be on.
  10. Again, what does the potion do? I do not know Skyrim. What level? What will have a duration? Within 5 seconds of what? Dies from what? You have not described this accurately at all. Yes it is. as I have said, the potion does nothing on its own. I have the event handler to check if the entity has the sould bind effect. if it does then the event handler will fill a soul gem. the level is in regards to the enchantment level. the higher the level the longer the duration of the soul bind potion effect. if the target dies in 5 seconds after the potion effect is applied then it will fill a gem. if the entity dies from anything, player, potion effects (poison harming etc) other players or entities, again I fail to see how any of this has to do with having the potion effect applied before damage is, when the entity dies the event is called and since the potion effect has not been applied it wont fill a gem, I want to rectify that and apply the damage after the entity gets the potion effect
  11. This effect will be a potion a spell and an enchantment that can go on any weapon. Just like in skyrim it will depending on the level have a certain duration. Ie if target dies in 5 seconds fills gem. I know i can check the weapon the player is holding but there wont always be a weapon that has this effect. Long story short i need help applying the potion effect before the entity dies. The point of this topic is not about my methods or reasons.
  12. i know that. Back to the point, I want my event to take an empty soul gem and fill it, I want the potion to be added to the chickens etc before the damage is applied to them, at the moment it seems to apply the potion effect after the damage is applied therefore the chickens and lesser health mobs are killed then the potion effect is added to their dying corpse. I am looking for a way to change that. the main reason that I want this to be a potion effect is that it will not only be on a sword, but on any weapon, a potion or spell. so that you can toss the potion or spell and kill them with any weapon.
  13. Because i am making it an enchant and potion and spell. It will only capture souls if you have soul trapon a weapon in a potion or as a spell
  14. The potion does nothing. I have a check to see if a mob has the potion effect and if they do take an empty soul gem and fill it when they die.
  15. I have a sword that is a debug item. It extends itemSword andbeach time the entity is hit it adds to potion effect. And all the different gems are to be similar to skyrim. And yes ik the code is messy. I just wanted to get it all to work before trying to screw with it
  16. Im trying to add a potion effect to an entity when the entity is attacked. Problem is when you attack the weaker mobs chickens and sheep. They are killed and the potion effect is not added. But on cows which take 2 hits to kill the first hit does damage and adds the potion effect then the second one kills it. I am trying to have to potion effect applied before the entity is killed. If you can help that would be great here is my EventHandler for the potion
  17. What object am i looking for in where. I would like it explained. Just to be sure i am doing this right. I found this Ctx.getServerHandler().playerEntity Is this the entity of the player sending the packet?
  18. Can you explain further. What method for the message context is it. Ie ctx.what
  19. Yeah i know all this but is there a way to tell the server who is needing to be teleported. I have it setup to send the coords
  20. In my gui elevator mod. If the player is not standing on or near the elevator it wont tp them to the floor they selected and tells console player moved wrongly. I read that if the origin and destination are not too far apart then it is fine however if they are too far i would need a packet to send the player to the destination. I however have a basic understanding of how the packets work and dont know how to use packets to teleport the player. Any help would be great
  21. how exactly would I route them through. can you give me an example so that I can understand it better and learn a thing or two. I do appreciate the help!
  22. I have looked through google and have yet to find a tutorial or any useful information on the process to set up commands to run in my mod. any help on making commands in 1.8.9 would be helpful
  23. alright, so how would I fix this, register them in the proxy? and isn't .opengui client only, I thought I had a check to see if the world was remote. can you explain where I should register the block then?
  24. I have an elevator mod that works fine on clients but crashes servers. Here is the crash report Here is my Elevator Block: And my Naming GUI: and my Floor Select GUI:

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.