#actionbar
1 messages · Page 1 of 1 (latest)
yee but when I know nothing about api and came out only with this ...
Events: example1: type: custom custom_event_data: event: world.bentobox.aoneblock.events.MagicBlockEvent player_variable: getPlayer() variables_to_capture: - "%count%;BlockBreakEvent()" actions: default: - "message: &bYou mined 1 block!"
I'm going to bed rn so can't check but I'll try to see tomorrow
Events:
moneyUpdate:
type: custom
custom_event_data:
event:
net.ess3.api.events.UserBalanceUpdateEvent
player_variable: getPlayer()
variables_to_capture:
- "%balance%;getNewBalance()"
- "%oldBalance%;getOldBalance()"
actions:
default:
- "message: &bBefore: %oldBalance% Now:%balance%"
- "message: &bYou +%math_%balance%-%oldBalance%%!"
I have no idea if that works but it's worth a try
send a screenshot of what it says in chat when you get money
and if I need it for other plugin? BentoBoxOneblock
AOneBlock
https://github.com/BentoBoxWorld/AOneBlock/blob/develop/src/main/java/world/bentobox/aoneblock/events/MagicBlockEvent.java idk what api use and so..
I came up with this
example1: type: custom custom_event_data: event: world.bentobox.aoneblock.events.MagicBlockEvent player_variable: getPlayer() variables_to_capture: - "%count%;BlockBreakEvent()" actions: default: - "to_all: message: you look so bad"
Event that is fired when the magic block spawns an entity
is that what you want?
what are you trying to check for?
and what do you want to execute/display?
basically I want to make this
when u break magic block its shows action bar with these said
when its breaked
did this work?
nope
did it not send a chat message?
I think this plugin dont have build it getplayer()
any errors?
try that (I removed the variables_to_capture)
type: custom
custom_event_data:
event: world.bentobox.aoneblock.events.MagicBlockEvent
player_variable: getPlayer()
variables_to_capture: []
actions:
default:
- "to_all: message: you look so bad"
nothing
I don't think this is possible with what both AOneBlock and ConditionalEvents offer
any idea how this could be done other way ?