Im making a custom items plugin that reads the item off of the config.yml file (I know its best practice to use a different file but this is a...
Make a runnable that runs 30 seconds later using runTaskLater and then just explode the creeper, you can modify the creepers explosion damage and...
Hmm, maybe instead of using a kvp try to add the enchantment as a piece of lore to the item then check if the item is correct using a method which...
https://www.spigotmc.org/resources/infitems.101673/ Done! Hope you enjoy :D If there is anything else you would like me to add that is related I can.
Seems fun Ill get working on it now. Ill add some basic permission like infcommand.use for now but if you want me to change it then ask! :D...
So, I'm using a runnable to create a particle beam starting at the player and going forwards 1 block at the angle of the player's eye at the time...
try to first check if the entity is an instance of the player and if it isn't don't run the code but if it is then run it something like if...
Hello! I'm trying to make items with custom stats and was wondering if there was a way to set a persistent data container in the item's recipe...
So is this function supposed to run until they have the number of items required? Just try to clarify. Anyways I think I have a solution Create a...
ty gonna try those rn I also think I might have the issue in that the ItemManager isnt adding the containers in the first place but ill see....
I dont think this would work because each instance of each item has their own set of variables here is my itemmanager. package me.neo.terminator;...
So I'm using a persistent data container to store some values And I set the namespaced key with its data type and its value successfully but I'm...
Run the code to damage the boots in a runnable and call it in your event handler code. This might work 1 class for the runnable and 1 class for...
ok thanks Ill try it ok so I've been trying for a while and can't seem to find a way to grab the lore and parse it. The string is always on the...
try using setlore instead of add lore meta.setLore(Arrays.asList( ChatColor.RED + "lore line 1", ChatColor.GREEN + "lore line 2"));
https://www.spigotmc.org/threads/check-if-item-is-damaged.107815/?__cf_chl_jschl_tk__=pmd_rJZjUCNdT.xzEXfrjUE.8wk4BMZZ5vOa5ZrgnWNbXNg-1631480674-0-...
SO I'm making a plugin that uses custom item stats to deal damage to entities. I have the damage calculation done the only thing I'm trying to...
ok, #1 thing your code is really hard to read especially with the imports all in one line. (IDK if this is an error on your side or if the forums...
So I made this custom damage system using a database that cancels the original attack of a player if the player attacks a creeper (For test...
you could get the player's inventory and check for the material wither skull in their inventory in an if statement. so that if they don't have...
Separate names with a comma.