A
Admincraft•10mo ago
Jawkins

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
No description
No description
66 Replies
Admincraft Meta
Admincraft Meta•10mo ago
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
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
the permission they've been given does not allow them to break that block in the region I don't know why
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
Thankyou for your helpful input
Harrison
Harrison•10mo ago
šŸ’€ ur useful pedro
Cordeliya
Cordeliya•10mo ago
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.
Jawkins
JawkinsOP•10mo ago
Legend, I'll get all this online in 30 and report back 🫔
Jawkins
JawkinsOP•10mo ago
@Cordeliya
No description
No description
Jawkins
JawkinsOP•10mo ago
:pepehmmmm:
Cordeliya
Cordeliya•10mo ago
is that world for player to build? or its just for tutorial?
Jawkins
JawkinsOP•10mo ago
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
Cordeliya
Cordeliya•10mo ago
thats mean in tutorial world can only break birch trees and emeralds?
Pedro Pagani
Pedro Pagani•10mo ago
Yes !!!
Jawkins
JawkinsOP•10mo ago
exactly it sounded like a simple thing to achieve
Pedro Pagani
Pedro Pagani•10mo ago
Are you able to place blocks
Jawkins
JawkinsOP•10mo ago
no break and collect only I mean thats the hope
Pedro Pagani
Pedro Pagani•10mo ago
Why not just some core Code Something like that would cost you deadass 20 lines
Jawkins
JawkinsOP•10mo ago
data pack?
Cordeliya
Cordeliya•10mo ago
check your world config inside worldguard plugin folder build-permission-nodes: enable: true and copy paste this remove worldguard.build.* in your permission
Cordeliya
Cordeliya•10mo ago
make this setting false and restart server
No description
Jawkins
JawkinsOP•10mo ago
No description
No description
Jawkins
JawkinsOP•10mo ago
restarting now I'm interested in this option too are you suggesting a small data pack @Pedro Pagani or am I just not understanding
Pedro Pagani
Pedro Pagani•10mo ago
No I'm talking about java code
Jawkins
JawkinsOP•10mo ago
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
Jawkins
JawkinsOP•10mo ago
@Cordeliya
No description
Jawkins
JawkinsOP•10mo ago
dang it wait sorry I didn't remove that worldguard.build.* even with that permission removed and another restart no good
Cordeliya
Cordeliya•10mo ago
try change to worldguard.build.block.place.birch_log worldguard.build.block.remove.birch_log
Cordeliya
Cordeliya•10mo ago
write build-permission-nodes inside config.yml on /plugins/WorldGuard/worlds/(name of your world)
No description
Jawkins
JawkinsOP•10mo ago
done and done
No description
No description
Jawkins
JawkinsOP•10mo ago
quick restart just in case
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
:PES_Hmmm:
Cordeliya
Cordeliya•10mo ago
hmm try to add context world: (name of your world) on every permission with context
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
that didn't work either thanks for your efforts so far it's really appreciated
Cordeliya
Cordeliya•10mo ago
add both world: tutorial and worldguard:region: tutorialisland
Jawkins
JawkinsOP•10mo ago
oh
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
that didn't work
Cordeliya
Cordeliya•10mo ago
u should apply it first
Jawkins
JawkinsOP•10mo ago
I did sorry I just nabbed the screencap before hand
Cordeliya
Cordeliya•10mo ago
try to change birch_log with *
Jawkins
JawkinsOP•10mo ago
same result I'm so confused
Cordeliya
Cordeliya•10mo ago
thats weird,im trying my self and work. you can check the context true or false with /lp user <name> info
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
sorrry about the beton stuff
Cordeliya
Cordeliya•10mo ago
and try to change region priority in worldguard with /rg info <region name> higher priority override lower one
No description
Jawkins
JawkinsOP•10mo ago
No description
Jawkins
JawkinsOP•10mo ago
changed same result
Cordeliya
Cordeliya•10mo ago
oh right i forgot you need manually to set build flags to true
Jawkins
JawkinsOP•10mo ago
oh ok one sec
Cordeliya
Cordeliya•10mo ago
/rg flag -w "tutorial" tutorialisland build true
Jawkins
JawkinsOP•10mo ago
No description
No description
Jawkins
JawkinsOP•10mo ago
it always gives me this warning so I've changed it in the config
Jawkins
JawkinsOP•10mo ago
No description
Cordeliya
Cordeliya•10mo ago
ah right it allow so it is work?
Jawkins
JawkinsOP•10mo ago
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?
Cordeliya
Cordeliya•10mo ago
yea change that to birch_log without s and for interact same with birch_log remove s from dropped_items
Jawkins
JawkinsOP•10mo ago
haha you're right
Cordeliya
Cordeliya•10mo ago
No description
Cordeliya
Cordeliya•10mo ago
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
Jawkins
JawkinsOP•10mo ago
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:
Admincraft Meta
Admincraft Meta•10mo ago
post closed!
The post/thread has been closed!
Requested by jawkins#0

Did you find this page helpful?