#How can I manage to remove modded items with skript?

1 messages ยท Page 1 of 1 (latest)

stable kraken
#

Hello, I have to say I'm not an expert about those things so got here to seek some help. How can I manage this to work?

command /ejder1:
  permission: oyuncu.1
  permission message: "&aKanka biliyorum tuhaf ama yetkin yok lan, bize bildir halledelim."
  trigger:
    player has "1 ICEANDFIRE_FIRE_DRAGON_HEART" parsed as item:
      remove 1 of ICEANDFIRE_FIRE_DRAGON_HEART from player
      execute console command "lp user %player% parent set ejder"
#

Item name seems correct.

stable kraken
#

Anyone? Please.

sick pewter
#

just do 1 of <item>

stable kraken
#

Thank you for your kind response. But it doesn't work either.

#

If you got any suggestions please let me know also ๐Ÿ’›

sick pewter
#

well you need to specify the item

stable kraken
#

I've tried the every way i can

strong harbor
#

you have clearly not

stable kraken
#

then lets see together

#

not working

#

not working

strong harbor
#

๐Ÿ’€

#

that second one is just

#

wrong

stable kraken
#

could be

#

but first one is also!

strong harbor
#

actually no

stable kraken
strong harbor
#

the first 1 should be working

stable kraken
#

here is it brother

strong harbor
#

from player's inventory

stable kraken
#

let me try

strong harbor
#

try that?

autumn marsh
stable kraken
#

same one brother

autumn marsh
#

can i ask how you managed to run skript on a modded server?

stable kraken
#

works perfectly fine

strong harbor
stable kraken
#

mod + plugins

#

you got any ideas about it?

autumn marsh
stable kraken
#

thats correct

#

i know

strong harbor
#

yeah

#

possibly set it to a variable

autumn marsh
stable kraken
#

but i assume there must be

#

solution for this

#

after all its an item right

autumn marsh
#

no idea how skript handles modded items

stable kraken
#

me too

autumn marsh
#

what if you tried remove 1 of "ICEANDFIRE_FIRE_DRAGON_HEART" parsed as item type from player?

stable kraken
#

seems okay but not deleting the item

autumn marsh
#

do you have effect commands enabled?

strong harbor
#
command /setitem [<text>]:
  trigger:
    set {items::%arg-1%} to player's held item

#remove 1 of {items::<name you put when executing command>} from player
#

this could work

#

altho its kind of long

stable kraken
strong harbor
#

its in the skript config

stable kraken
stable kraken
autumn marsh
#

allows you to run effects by sending a message

strong harbor
#

basically if you do for instance !broadcast "boop" in chat, it broadcasts it

stable kraken
#

oh yeah

autumn marsh
#

like saying !send "hi" sends hi, as if it was skript code

stable kraken
#

its works i tried that command

#

i tried in that way !broadcast "%tool of player%"

#

it says this

autumn marsh
#

what about "%type of tool%"?

strong harbor
#

still a pretty overcomplicated method for something this simple, im sure there is an easier way but idrk how tf skript handles modded items

autumn marsh
#

^

stable kraken
autumn marsh
#

i expected "ICEANDFIRE..." parsed as item type to work

stable kraken
#

me too actually

strong harbor
#

yh its pretty wierd

autumn marsh
#

i heard there are aliases somewhere in the skript's files, maybe you can manually add it in there

strong harbor
#

oh that might work

autumn marsh
#

idk where it is or how to use it cause i never ran skript on modded servers

stable kraken
#

everything is easy on vanilla tbh

strong harbor
#

you could mabey use reflect

#

however idk how thatll turn out

stable kraken
#

well you guys made my day by just trying to help

#

thank you so much

strong harbor
#

np ig

#

i got work to do so cya

stable kraken
#

see ya brother

autumn marsh
strong harbor
#

wait 1 last idea

autumn marsh
#

today i learned skript is able to run on modded servers

strong harbor
#

actually nevermind

autumn marsh
#

๐Ÿ‘

stable kraken
#

i got alot of skripts

#

trying to make a rankup system

strong harbor
#

i thought of sending the variable but realised we already sort of tried it

stable kraken
#

with taking dragon hearts

strong harbor
#

if you want me to try and help i could once i get time, jsuit dm me

stable kraken
strong harbor
#

alr cool beans

stable kraken
#

nope sadly not removing also

strong harbor
#

honestly it might not even be possible

stable kraken
#

yes brother you might be right

#

i dont wanna give up on that thing but

#

all gates leads to giving up

strong harbor
#

a second option is to use custom model data with a resource pack

stable kraken
#

well i can still do shopkeeper fire dragon = named paper and remove the named paper from inventory with skript

#

but thats waste of time for players tbh

strong harbor
#

or you could try to modify the atlas

#

best option is still probally reflect

dusk mirage
#
stable kraken
#

Let met try that too.

stable kraken
#

So two documents leads to 2.10+ SkBee updates sincerely I am using 1.16.5 version of minecraft thats why I got SkBee 1.15.3

#

so sadly its not working also

stable kraken
#

Well i managed to worked out. Thank's everyone.

crimson lark
#

without specifying the namespace, Skript will treat the item as a Minecraft one, so you'll need to specify the mod id before the name (like quark:apple_crate for the Quark mod's "Apple Crate")

turbid gazelle
#

i know this is quite old but it should be accessible as 1 of iceandfire fire dragon heart

stable kraken
stable kraken
#

The solution is simple tho. Skript is not be able to read modded items datas by any chance. Because It's for Paper and Spigot! So if you want to use modded items on skript, you just need an simple addon.