Jump to content

Recommended Posts

Posted

I have an activated item that gives a buff, i got it to take the buff off if it leaves your action bar, and if you drop it. My only problem is it a player puts it in an inventory like a chest nothing gets called that i can see, any method for that i'm missing? Or should  i just stick to short duration buffs so they fall off it its not maintained.

 

onUpdate stops calling on leave but that also means i cant turn it off with that and onDroppedByPlayer doesn't call unless its spawns in world

Posted

You could do too things I just thought of

1. Subscribe to playerTickEvent and use that

2. Check if player.openContainer != null then remove the buff

I prefer the second option.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

yeah but then like an item frame could be used to get around it too. and i have a charging stand that just right click with no inventory, just takes it from you hand and copy it, the upkeep tick also charges the item so its not like its not running anyway just seeing if their was a better way

Posted

Good luck covering every possible way it can leave your inventory.

(Hint: itemframes)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I'm playing minecraft with a modpack I made myself, and for some reason, it's making my singleplayer worlds act as a multiplayer server. I randomly start lagging as if I have a bad connection to a server, and when I try to quit and save the world, I get stuck in an eternal "Saving World" screen, forcing me to close the game through Task Manager. All the articles I've seen online point to OptFine as the culprit, but I'm using embeddium instead. I even tried disabling it to see if it was the issue, but nothing changed. I'm not sure what to provide for anyone trying to help me, so here are my logs and modlist. Debug Log: https://gist.github.com/Juaum12412/a452d00019115c5be203649652c1a7ac Latest Log: https://gist.github.com/Juaum12412/8f77311dbd61c1b1c91917fa82e14130 Modlist: https://gist.github.com/Juaum12412/7f7c58e3ac14a5ba3fe3602b33912bf8 If you need anything else just tell me. Mc 1.20.1 Forge 47.3.29 8gb of ram (I can give the game up to 12 gbs)
    • I'd like to retexture the early loading screen used by Forge but I can't seem to find a way to texture them at all, at least in recent versions of Minecraft and Forge. I'm mainly looking to change the background color and Mojang logo, maybe change or remove the Forge animation at the bottom as well.
    • Hello! I'm developing a mod that will add abilities that players can use at will. I am currently trying to get hand animations in first person view, such as casting spells or charging energy, but I am running into a roadblock. I've looked for resources to help me but I haven't found any working ones yet, does anyone know how to implement this? Thank you!
    • Hey All, I have a unique issue with a modpack I'm playing: I know Forge usually combines all tags that have the same name across the mods for recipes. Unfortunately, a mod I'm playing with didn't follow this logic based on a typo. I have like 5 forms of steel ingots, but one of the mods accidentally has zombie_extreme:ignotsteel instead of something that I figure forge would catch like zombie_extreme:ingotsteel or something. I want to know how to either: - Forcibly add zombie_extreme:ignotsteel to the list of steel ingots that forge recognizes as the same recipe ingredient. If this is doable, I just need to know where in the files this list is and I can add it. - Forcibly change the name of zombie_extreme:ignotsteel to something more obvious and spelled properly so Forge can automatically combine them.   Let me know if this is possible and/or if I need to supply more information. Thank you
  • Topics

×
×
  • Create New...

Important Information

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