#Can anyone help me with 3 skripts to do with item blocking please :3
1 messages · Page 1 of 1 (latest)
I assume event actions for a enchant book entering inventory, checking the enchant level, and if it’s 4 making it 3
i know nothing about skript
Same lol
im so lost xd
all i know how to do is make someone teleport to a location when stepping on a block
Skript seems to be easy to learn as it’s in English not like a code language
yeah
#event_action I think can check for stuff entering inventory
ok
how would one disable the use of pearls
i had a plugin for it but it only works when said player is flying
kinda useless
Prob setting a cooldown of infinity (no clue how to do that) or another event actions when projectile thrown check type and if ender pearl cancel action
but then they would be able to use 1
you can just cancel throw event
how!
We dumb you gotta explain in the code term thing
real
How do you make explosions do less damage
No like for smp
on damage
if explosion
reduce dmg
not an actual code
what about cart!
also reading the topic of this channel
im pretty sure i have seen this like at least 3 times already so you could just search the forum and copy paste whatever solutions those people figured out
Read tutorials
the best way to learn is to practice
Learn basics first
@narrow nymph idk why like no one helped u in the 45 messages besides like 3 messages
but this is simple skript, learn with tutorials
also
skript is basically just english
u can read thru it
its ez to learn
@narrow nymph
Start with Skript and Skbee and review these forums to find what your looking for - https://skripthub.net/docs/
You can use the search feature to find what your looking for and make a code with it
Its also split into different sections like events, expressions, effects, etc.
Why? Why impose a deadline on yourself if you know its impossible?
for the things you're asking for you definitely can make the skripts yourself by tmrw
.
'''
on spawn of entity:
If name of event-entity is ‘Ender Pearl’:
Cancel event
Send ‘EnderPearls are disabled.’
'''
Thats wrong, and dont spoon feed
use ` instea dof ' to make code blocsk
Just doesn't work...
Not even close
Just read the docs
you did it?
@narrow nymph
This is how to disable pearls if you haven't learned how to yet, i suggest you learn skript, it's really easy compared to other languages
options:
message: "&c&lHey! Ender Pearls are disabled!"
on right click:
if event item is ender pearl:
cancel event
send {@message} to player
I’d compare skript to scratch, you kinda just put blocks
why did this require you to ping me?
Uhhhh I missed... BUT THIS TIME IS WITHOUT PING
xD
Dont spoon-feed, this doesnt block offhand, i would recommend the shoot event
uh, right, you can throw with right hand... oops xD
Use event-item instead of players tool.
So off hand item is detected
right bruh, but shoot is better i think
Yeah, for now i'll just put on right click with event item, so maybe if he has smth custom that shoots ender pearls that is unbanned 🤷
Just check the projectile
Probably he doesn't, but if he has some custom items that throw enderpearls that he doesn't want to block this doesnt, the shoot event does
@narrow nymph this also has a command to enable/disable them, they are disabled by default
options:
message: "&c&lHey! Ender Pearls are disabled!"
command /enderpearldisabler:
permission: enderpearl.disabler.use
trigger:
if {enderpearls.disabled} is true:
set {enderpearls.disabled} to false
send "&aEnder Pearls Enabled"
else:
set {enderpearls.disabled} to true
send "&aEnder Pearls Disabled"
on right click:
if {enderpearls.disabled} is true:
if event-item is ender pearl:
cancel event
if {ender_pearl_message_cooldown.%player%} is set:
set {_waited} to difference between {ender_pearl_message_cooldown.%player%} and now
if {_waited} is less than 2.5 seconds:
stop
send {@message} to player
set {ender_pearl_message_cooldown.%player%} to now
on load:
if {enderpearls.disabled} is not set:
set {enderpearls.disabled} to true

on teleport:
if teleport cause is ender pearl:
cancel the event
should give an enderpearl to player
what if you want to do a chunk loader?
Then you do what they did on lifesteal
Also thats if on teleport not if on throw.
use chunky
oh wait it is pre-generating chunks
just see some tutorials/ docs etc
