Need players to be able to break certain blocks in a region
Hey there I'm back again
I've been trying to set this up for a while with no success and I've completely run out of options
I'd like the players on the server to be able to mine emerald ore and birch logs in a specific region (tutorialisland) and I've been trying all sorts of things
The closest I've gotten is using
- Luckperms Extra Contexts
- WorldGuard
screenshots attached, any help would be amazing
66 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by jawkins#0
the permission they've been given does not allow them to break that block in the region
I don't know why
Thankyou for your helpful input
š
ur useful pedro
You forgot to add permission
-worldguard.build.block.interact.*
-worldguard.build.entity.interact.*
-worldguard.build.entity.place.droped_items
-worldguard.build.entity.remove.dropped_items
-worldguard.build.item.use.*
with all of that permission context worldguard:region: tutorialisland
And after that you can specify the place and remove permission with emerald ore and birch logs.
Legend, I'll get all this online in 30 and report back
š«”
@Cordeliya
:pepehmmmm:
is that world for player to build? or its just for tutorial?
It's a seperate world for tutorial only
in which the player is required to complete a few tasks
2 of them are
- chop birch trees
- mine emeralds
the overworld is vanilla otherwise and well need full build permissions for players
thats mean in tutorial world
can only break birch trees and emeralds?
Yes !!!
exactly
it sounded like a simple thing to achieve
Are you able to place blocks
no
break and collect only
I mean thats the hope
Why not just some core
Code
Something like that would cost you deadass 20 lines
data pack?
check your world config inside worldguard plugin folder
build-permission-nodes:
enable: true
and copy paste this
remove worldguard.build.* in your permission
make this setting false and restart server
restarting now
I'm interested in this option too
are you suggesting a small data pack @Pedro Pagani or am I just not understanding
No I'm talking about java code
Please explain further if you have the time
- where would I be writing this?
- how would I target a specific region/world
- this may be beyond my capabilities until I learn more
@Cordeliya
dang it
wait sorry
I didn't remove that worldguard.build.*
even with that permission removed and another restart
no good
try change to
worldguard.build.block.place.birch_log
worldguard.build.block.remove.birch_log
write build-permission-nodes
inside config.yml on
/plugins/WorldGuard/worlds/(name of your world)
done and done
quick restart just in case
:PES_Hmmm:
hmm
try to add context
world: (name of your world) on every permission with context
that didn't work either
thanks for your efforts so far it's really appreciated
add both world: tutorial and worldguard:region: tutorialisland
oh
that didn't work
u should apply it first
I did
sorry I just nabbed the screencap before hand
try to change birch_log with *
same result
I'm so confused
thats weird,im trying my self and work.
you can check the context true or false with
/lp user <name> info
sorrry about the beton stuff
and try to change region priority in worldguard with /rg info <region name>
higher priority override lower one
changed
same result
oh right i forgot
you need manually to set build flags to true
oh ok one sec
/rg flag -w "tutorial" tutorialisland build true
it always gives me this warning so I've changed it in the config
ah right it allow
so it is work?
I can break anything I want so I'll change that permission from * to birch_logs and test
I can't pick anything up so I guess I need to add that entity interaction permission?
yea change that to birch_log without s
and for interact same with birch_log
remove s from dropped_items
haha
you're right
here the wiki if you need more info about worldguard build permission nodes
https://worldguard.enginehub.org/en/latest/build-perms/
and here for material list for spigot
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
Material (Spigot-API 1.21-R0.1-SNAPSHOT API)
declaration: package: org.bukkit, enum: Material
FANTASTIC
it works!
so I now I need to add the worldguard.build.* = in-region: false
so that they are free outside of any region?
so I added that back and that helped
I can break blocks outside other regions and place freely
I think I need to update the context of the interaction permission so I can open chests and interact with NPCs in all regions
that worked exaclty like I hoped it would
You've been a huge help @Cordeliya
thankyou so much :HEART:
post closed!
The post/thread has been closed!
Requested by jawkins#0