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

Did you find this page helpful?