ITEMS/mcl_tnt: Add setting for TNT drop rate (default 100%) #291
No reviewers
Labels
No Label
blocker
bug
code quality
confirmed
critical
discussion
high priority
incompatibility
incomplete feature
invalid
low priority
missing feauture
needs testing
packet spam
performance
project
regression
translations
unconfirmed
in review
ready for review
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mineclonia/Mineclonia#291
Loading…
Reference in New Issue
No description provided.
Delete Branch "add-tnt-drop-rate-setting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
TRACKING ISSUE: #287
Destroying nodes with TNT drops only some of them (1 / explosion strength) as items.
For a TNT explosion (with strength 4), this means that 25% of the nodes are dropped.
This means that destroying nodes with TNT makes it impossible to pick all of them up.
Solution
This PR introduces a setting for the chance of a node to drop from a TNT explosion.
Details
Since Minecraft 1.14 has a TNT 100% drop rate, the default rate is set to 100% too.
Testing Steps
Note that items entities spawned by explosions may be pushed into walls. Therefore, a good way of figuring out how many nodes were dropped as items is to pick the items up and count the number of items in your inventory.
Verify Bug
d2c335d8fb
(branchmaster
) in survival mode.Verify Patch (Test Structure Placement)
6e11819b79
(branchadd-tnt-drop-rate-setting
) in survival mode./spawnstruct test_structure_tnt
./grantme debug
./spawnstruct test_structure_tnt
.Verify Patch (TNT drop rate unset, i.e. should be 100%)
minetest.conf
does not contain a line starting withmcl_tnt_drop_rate
.6e11819b79
(branchadd-tnt-drop-rate-setting
) in survival mode./grantme debug
./spawnstruct test_structure_tnt
.Verify Patch (TNT drop rate set to 50%)
mcl_tnt_drop_rate
(TNT drop rate) to0.5
.6e11819b79
(branchadd-tnt-drop-rate-setting
) in survival mode./grantme debug
./spawnstruct test_structure_tnt
.minetest.conf
does contain a linemcl_tnt_drop_rate = 0.5
.Verify Patch (TNT drop rate set to 0%)
mcl_tnt_drop_rate
(TNT drop rate) to0.0
.6e11819b79
(branchadd-tnt-drop-rate-setting
) in survival mode./grantme debug
./spawnstruct test_structure_tnt
.minetest.conf
does contain a linemcl_tnt_drop_rate = 0.0
.To do
85700fe246
to20f760e4a6
20f760e4a6
to6e11819b79
WIP: ITEMS/mcl_tnt: Add setting for TNT drop rate (default 100%)to ITEMS/mcl_tnt: Add setting for TNT drop rate (default 100%)No bugs or crashes were found when performing the following testings steps according to the instructions:
Verify Bug
Verify Patch (Test Structure Placement)
Verify Patch (TNT drop rate unset, i.e. should be 100%)
Verify Patch (TNT drop rate set to 50%)
Verify Patch (TNT drop rate set to 0%)